fix >500% basal setting
This commit is contained in:
parent
5e5c837949
commit
f68042af66
1 changed files with 3 additions and 0 deletions
|
@ -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