Merge pull request #2027 from Andries-Smit/fix/dash-round-reservoir

fix: dash pump status round reservoir
This commit is contained in:
Milos Kozak 2022-08-18 13:43:55 +02:00 committed by GitHub
commit 1f6c812a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.Command
import info.nightscout.androidaps.queue.commands.CustomCommand import info.nightscout.androidaps.queue.commands.CustomCommand
import info.nightscout.androidaps.utils.DateUtil 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.DecimalFormatter.to2Decimal
import info.nightscout.androidaps.utils.FabricPrivacy import info.nightscout.androidaps.utils.FabricPrivacy
import info.nightscout.androidaps.utils.Round import info.nightscout.androidaps.utils.Round
@ -1063,7 +1064,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
} }
ret += rh.gs( ret += rh.gs(
R.string.omnipod_common_short_status_reservoir, R.string.omnipod_common_short_status_reservoir,
podStateManager.pulsesRemaining?.let { reservoirLevel.toString() } ?: "50+" podStateManager.pulsesRemaining?.let { to0Decimal(reservoirLevel) } ?: "50+"
) )
return ret.trim() return ret.trim()
} }