Merge branch 'fixTBR' into 'combo'
fix >500% basal setting See merge request !3
This commit is contained in:
commit
58505922f2
1 changed files with 3 additions and 0 deletions
|
@ -485,6 +485,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