fix >500% basal setting

This commit is contained in:
Sandra Keßler 2017-07-24 18:39:43 +02:00
parent e7249bf72e
commit 6dba4e4956

View file

@ -502,6 +502,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
} }
CommandResult commandResult = runCommand(new SetTbrCommand(adjustedPercent, durationInMinutes)); CommandResult commandResult = runCommand(new SetTbrCommand(adjustedPercent, durationInMinutes));
if (commandResult.enacted) { if (commandResult.enacted) {
TemporaryBasal tempStart = new TemporaryBasal(commandResult.completionTime); TemporaryBasal tempStart = new TemporaryBasal(commandResult.completionTime);
// TODO commandResult.state.tbrRemainingDuration might already display 29 if 30 was set, since 29:59 is shown as 29 ... // TODO commandResult.state.tbrRemainingDuration might already display 29 if 30 was set, since 29:59 is shown as 29 ...