From ba0bd0fca31a2f7e6e090ac5ff71981bea9af27c Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Sat, 19 Dec 2020 02:16:20 +0100 Subject: [PATCH] Add comment --- .../androidaps/plugins/general/overview/StatusLightHandler.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/StatusLightHandler.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/StatusLightHandler.kt index c13aef1357..0db62e6705 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/StatusLightHandler.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/StatusLightHandler.kt @@ -71,6 +71,7 @@ class StatusLightHandler @Inject constructor( warnColors.setColorInverse(view, level, resWarn, resUrgent) } + // Omnipod only reports reservoir level when it's 50 units or less, so we display "50+U" for any value > 50 private fun handleOmnipodReservoirLevel(view: TextView?, criticalSetting: Int, criticalDefaultValue: Double, warnSetting: Int, warnDefaultValue: Double, level: Double, units: String) { val resUrgent = sp.getDouble(criticalSetting, criticalDefaultValue) val resWarn = sp.getDouble(warnSetting, warnDefaultValue)