DanaR hardcoded bolus limit 10 -> 17

This commit is contained in:
Milos Kozak 2016-10-17 09:31:06 +02:00
parent a829a506f2
commit 7a3f7098b0

View file

@ -19,7 +19,7 @@ public class MsgBolusStart extends MessageBase {
// HARDCODED LIMIT
amount = MainApp.getConfigBuilder().applyBolusConstraints(amount);
if (amount < 0) amount = 0d;
if (amount > 10) amount = 10d;
if (amount > 17) amount = 17d;
AddParamInt((int) (amount * 100));
}