report 50 if reservoir level is >50

This commit is contained in:
Andrei Vereha 2021-10-26 18:45:02 +02:00
parent 10078f1711
commit 15dfbe55e5

View file

@ -519,7 +519,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
// Omnipod only reports reservoir level when there's < 1023 pulses left // Omnipod only reports reservoir level when there's < 1023 pulses left
return podStateManager.pulsesRemaining?.let { return podStateManager.pulsesRemaining?.let {
it * PodConstants.POD_PULSE_BOLUS_UNITS it * PodConstants.POD_PULSE_BOLUS_UNITS
} ?: 75.0 } ?: 50.0
} }
override val batteryLevel: Int override val batteryLevel: Int