diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/BolusCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/BolusCommand.java index 494595077e..d84023ef1e 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/BolusCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/BolusCommand.java @@ -26,7 +26,7 @@ public class BolusCommand implements Command { public List validateArguments() { List violations = new ArrayList<>(); - if (bolus > 0 && bolus < 25) { + if (bolus <= 0 || bolus > 25) { violations.add("Requested bolus " + bolus + " out of limits (0-25)"); }