diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8ac69ff8d5..18b60c22a9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -798,7 +798,7 @@ Bolus delivery verification failed. The pump history will be read again on the next loop run or when refreshing from the Combo page. Please check and bolus again if needed. Requested operation not supported by pump Bolus delivery failed. A (partial) bolus might have been delivered. Attempting to update history from pump. Please check the Combo page and bolus again as needed. - Unsafe usage: extended or multiwave boluses have been delivered within the last 6 hours. Loop mode has been disabled until 6 hours after the last unsupported bolus. Only normal boluses are supported in loop mode. + Unsafe usage: extended or multiwave boluses have been delivered within the last 6 hours or the selected basal rate is not 1. Loop mode has been disabled until 6 hours after the last unsupported bolus or basal rate profile. Only normal boluses are supported in loop mode with basal rate profile 1. A bolus with the same amount was requested within the last minute. For safety reasons this is disallowed. diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index 1429ef6456..5e7c05c5b2 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -442,8 +442,9 @@ public class RuffyScripter implements RuffyCommands { if (menuType == MenuType.MAIN_MENU) { Double tbrPercentage = (Double) menu.getAttribute(MenuAttribute.TBR); BolusType bolusType = (BolusType) menu.getAttribute(MenuAttribute.BOLUS_TYPE); - if (bolusType != null && bolusType != BolusType.NORMAL) { - // unsupported Extended/Multiwave bolus running + Integer activeBasalRate = (Integer) menu.getAttribute(MenuAttribute.BASAL_SELECTED); + + if (bolusType != null && bolusType != BolusType.NORMAL || !activeBasalRate.equals(1)) { state.unsafeUsageDetected = true; } else if (tbrPercentage != 100) { state.tbrActive = true;