bugfix: set the tempbasal timestamp to the time when the historyEntry was created, not a random number :)

This commit is contained in:
Andrei Vereha 2021-05-30 23:09:15 +02:00
parent 91957930ed
commit 3ca88ef51b

View file

@ -293,7 +293,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
throw IllegalArgumentException("Illegal recording in history: $record. Expected a temp basal")
}
val ret = pumpSync.syncTemporaryBasalWithPumpId(
timestamp = historyEntry.pumpId(),
timestamp = historyEntry.createdAt,
rate = record.rate,
duration = record.duration.toLong(),
isAbsolute = true,