From af4ec4d072eeed4191bebd0a12cdf94366c08b31 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 17 Jul 2017 15:40:55 +0200 Subject: [PATCH] BolusCommand: fix contstraint check (doh!) --- .../java/de/jotomo/ruffyscripter/commands/BolusCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"); }