Update LocalInsightPlugin.java

This commit is contained in:
Tebbe Ubben 2020-05-29 19:51:13 +02:00 committed by GitHub
parent 02aff75dff
commit 5395ca4e71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1382,13 +1382,13 @@ public class LocalInsightPlugin extends PumpPluginBase implements PumpInterface,
pumpID.eventID = event.getEventPosition();
pumpID.pumpSerial = serial;
pumpID.eventType = "EndOfTBR";
pumpID.timestamp = timestamp - 1500L;
pumpID.timestamp = timestamp;
MainApp.getDbHelper().createOrUpdate(pumpID);
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
temporaryBasal.durationInMinutes = 0;
temporaryBasal.source = Source.PUMP;
temporaryBasal.pumpId = pumpID.id;
temporaryBasal.date = timestamp;
temporaryBasal.date = timestamp - 1500L;
temporaryBasals.add(temporaryBasal);
}