fix >500% basal setting
This commit is contained in:
parent
5e5c837949
commit
f68042af66
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue