bugfix: set the tempbasal timestamp to the time when the historyEntry was created, not a random number :)
This commit is contained in:
parent
91957930ed
commit
3ca88ef51b
|
@ -293,7 +293,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
throw IllegalArgumentException("Illegal recording in history: $record. Expected a temp basal")
|
throw IllegalArgumentException("Illegal recording in history: $record. Expected a temp basal")
|
||||||
}
|
}
|
||||||
val ret = pumpSync.syncTemporaryBasalWithPumpId(
|
val ret = pumpSync.syncTemporaryBasalWithPumpId(
|
||||||
timestamp = historyEntry.pumpId(),
|
timestamp = historyEntry.createdAt,
|
||||||
rate = record.rate,
|
rate = record.rate,
|
||||||
duration = record.duration.toLong(),
|
duration = record.duration.toLong(),
|
||||||
isAbsolute = true,
|
isAbsolute = true,
|
||||||
|
|
Loading…
Reference in a new issue