Skip to content

Commit

Permalink
Fix pump battery warning level
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Jan 9, 2025
1 parent c6e0a40 commit 0c3e1ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class StatusLightHandler @Inject constructor(
val erosBatteryLinkAvailable = pump.model() == PumpType.OMNIPOD_EROS && pump.isUseRileyLinkBatteryLevel()

if (pump.model().supportBatteryLevel || erosBatteryLinkAvailable) {
handleLevel(batteryLevel, IntKey.OverviewBattCritical, IntKey.OverviewSbatWarning, pump.batteryLevel.toDouble(), "%")
handleLevel(batteryLevel, IntKey.OverviewBattCritical, IntKey.OverviewBattWarning, pump.batteryLevel.toDouble(), "%")
} else {
batteryLevel?.text = rh.gs(app.aaps.core.ui.R.string.value_unavailable_short)
batteryLevel?.setTextColor(rh.gac(batteryLevel.context, app.aaps.core.ui.R.attr.defaultTextColor))
Expand Down

0 comments on commit 0c3e1ad

Please sign in to comment.