Merge branch 'fixTBR' into 'combo'

fix >500% basal setting

See merge request !3
This commit is contained in:
Johannes Mockenhaupt 2017-07-25 09:35:59 +00:00
commit 58505922f2

View file

@ -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);