fix >500% basal setting

This commit is contained in:
Sandra Keßler 2017-07-24 18:39:43 +02:00
parent 5e5c837949
commit f68042af66

View file

@ -463,6 +463,9 @@ public class ComboPlugin implements PluginBase, PumpInterface {
percent = rounded;
}
//FIXME maybe needs a flag in pump config?
percent = percent > 500 ? 500 : percent;
CommandResult commandResult = runCommand(new SetTbrCommand(percent, durationInMinutes));
if (commandResult.enacted) {
TemporaryBasal tempStart = new TemporaryBasal(commandResult.completionTime);