Insight: Log end events five seconds earlier
This commit is contained in:
parent
ea20895966
commit
79cafc14f5
1 changed files with 1 additions and 1 deletions
|
@ -1382,7 +1382,7 @@ public class LocalInsightPlugin extends PumpPluginBase implements PumpInterface,
|
||||||
pumpID.eventID = event.getEventPosition();
|
pumpID.eventID = event.getEventPosition();
|
||||||
pumpID.pumpSerial = serial;
|
pumpID.pumpSerial = serial;
|
||||||
pumpID.eventType = "EndOfTBR";
|
pumpID.eventType = "EndOfTBR";
|
||||||
pumpID.timestamp = timestamp;
|
pumpID.timestamp = timestamp - 5000L;
|
||||||
MainApp.getDbHelper().createOrUpdate(pumpID);
|
MainApp.getDbHelper().createOrUpdate(pumpID);
|
||||||
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
|
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
|
||||||
temporaryBasal.durationInMinutes = 0;
|
temporaryBasal.durationInMinutes = 0;
|
||||||
|
|
Loading…
Reference in a new issue