BolusCommand: fix contstraint check (doh!)
This commit is contained in:
parent
5f43f0f147
commit
af4ec4d072
|
@ -26,7 +26,7 @@ public class BolusCommand implements Command {
|
|||
public List<String> validateArguments() {
|
||||
List<String> violations = new ArrayList<>();
|
||||
|
||||
if (bolus > 0 && bolus < 25) {
|
||||
if (bolus <= 0 || bolus > 25) {
|
||||
violations.add("Requested bolus " + bolus + " out of limits (0-25)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue