BolusCommand: fix contstraint check (doh!)

This commit is contained in:
Johannes Mockenhaupt 2017-07-17 15:40:55 +02:00
parent 5f43f0f147
commit af4ec4d072
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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)");
}