fix: dash pump status round reservoir

This commit is contained in:
Andries Smit 2022-08-18 11:11:39 +02:00
parent e9da50cefe
commit b713c1b7c4

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.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()
}