From 7ef5b4fb28f1804be7fde74bdcd3b36001dcae36 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Mon, 16 Apr 2018 20:31:37 +0200 Subject: [PATCH] More realistic colored IAGE warnings Normaly Insulin should be stable at least 4-5 days. So I think a warning after two days and a red alarm after three is two early. I changed the default values to 72 hours for the yellow and 86 hours for the red warning. --- .../androidaps/plugins/Careportal/CareportalFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java index 8a8a730bb3..5335ee05e5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java @@ -216,8 +216,8 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli CareportalEvent careportalEvent; NSSettingsStatus nsSettings = new NSSettingsStatus().getInstance(); - double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 72); - double iageWarn = nsSettings.getExtendedWarnValue("iage", "warn", 48); + double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 86); + double iageWarn = nsSettings.getExtendedWarnValue("iage", "warn", 72); double cageUrgent = nsSettings.getExtendedWarnValue("cage", "urgent", 72); double cageWarn = nsSettings.getExtendedWarnValue("cage", "warn", 48); double sageUrgent = nsSettings.getExtendedWarnValue("sage", "urgent", 166);