Merge pull request #784 from 0pen-dash/avereha/dash-reservoir

[dash] report 50 remaining units if reservoir level is >50
This commit is contained in:
Milos Kozak 2021-10-26 19:22:29 +02:00 committed by GitHub
commit cacdec48e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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