From dc89d0dfcf33eb6dff03d47e0c774be748e39777 Mon Sep 17 00:00:00 2001 From: Tanja Schmidt Date: Tue, 12 Mar 2019 21:30:23 +0100 Subject: [PATCH] Fixed: Use bage instead of pgage variable for coloring the battery age. --- .../plugins/general/careportal/CareportalFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/careportal/CareportalFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/careportal/CareportalFragment.java index 058c31b0b5..991fc962ee 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/careportal/CareportalFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/careportal/CareportalFragment.java @@ -229,8 +229,8 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli double sageWarn = nsSettings.getExtendedWarnValue("sage", "warn", 164); handleAge(sage, CareportalEvent.SENSORCHANGE, sageWarn, sageUrgent); - double pbageUrgent = nsSettings.getExtendedWarnValue("pgage", "urgent", 360); - double pbageWarn = nsSettings.getExtendedWarnValue("pgage", "warn", 240); + double pbageUrgent = nsSettings.getExtendedWarnValue("bage", "urgent", 360); + double pbageWarn = nsSettings.getExtendedWarnValue("bage", "warn", 240); handleAge(pbage, CareportalEvent.PUMPBATTERYCHANGE, pbageWarn, pbageUrgent); } );