From b713c1b7c491f906365e37fba313c6013d7a592a Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Thu, 18 Aug 2022 11:11:39 +0200 Subject: [PATCH] fix: dash pump status round reservoir --- .../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 355371f106..2ef6ee79eb 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 @@ -44,6 +44,7 @@ import info.nightscout.androidaps.plugins.pump.omnipod.dash.util.mapProfileToBas import info.nightscout.androidaps.queue.commands.Command import info.nightscout.androidaps.queue.commands.CustomCommand import info.nightscout.androidaps.utils.DateUtil +import info.nightscout.androidaps.utils.DecimalFormatter.to0Decimal import info.nightscout.androidaps.utils.DecimalFormatter.to2Decimal import info.nightscout.androidaps.utils.FabricPrivacy import info.nightscout.androidaps.utils.Round @@ -1063,7 +1064,7 @@ class OmnipodDashPumpPlugin @Inject constructor( } ret += rh.gs( R.string.omnipod_common_short_status_reservoir, - podStateManager.pulsesRemaining?.let { reservoirLevel.toString() } ?: "50+" + podStateManager.pulsesRemaining?.let { to0Decimal(reservoirLevel) } ?: "50+" ) return ret.trim() }