Update LocalInsightPlugin.java
This commit is contained in:
parent
02aff75dff
commit
5395ca4e71
|
@ -1382,13 +1382,13 @@ 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 - 1500L;
|
pumpID.timestamp = timestamp;
|
||||||
MainApp.getDbHelper().createOrUpdate(pumpID);
|
MainApp.getDbHelper().createOrUpdate(pumpID);
|
||||||
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
|
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
|
||||||
temporaryBasal.durationInMinutes = 0;
|
temporaryBasal.durationInMinutes = 0;
|
||||||
temporaryBasal.source = Source.PUMP;
|
temporaryBasal.source = Source.PUMP;
|
||||||
temporaryBasal.pumpId = pumpID.id;
|
temporaryBasal.pumpId = pumpID.id;
|
||||||
temporaryBasal.date = timestamp;
|
temporaryBasal.date = timestamp - 1500L;
|
||||||
temporaryBasals.add(temporaryBasal);
|
temporaryBasals.add(temporaryBasal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue