From c989c6a1c506e2c258aefdba557b74f52eac6346 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Sun, 30 May 2021 23:55:47 +0200 Subject: [PATCH] duration is in ms --- .../plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt index bf65106bce..04a6f36b6e 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt @@ -26,6 +26,7 @@ import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data.TempBas import info.nightscout.androidaps.plugins.pump.omnipod.dash.ui.OmnipodDashOverviewFragment import info.nightscout.androidaps.plugins.pump.omnipod.dash.util.mapProfileToBasalProgram import info.nightscout.androidaps.queue.commands.CustomCommand +import info.nightscout.androidaps.utils.T import info.nightscout.androidaps.utils.TimeChangeType import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.sharedPreferences.SP @@ -295,7 +296,7 @@ class OmnipodDashPumpPlugin @Inject constructor( val ret = pumpSync.syncTemporaryBasalWithPumpId( timestamp = historyEntry.createdAt, rate = record.rate, - duration = record.duration.toLong(), + duration = T.mins(record.duration.toLong()).msecs(), isAbsolute = true, type = tbrType, pumpId = historyEntry.pumpId(),