use pumpdescription.maxTempPercent to cutoff temps
This commit is contained in:
parent
13173e48c1
commit
8937fbe574
1 changed files with 1 additions and 2 deletions
|
@ -487,8 +487,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
percent = rounded;
|
||||
}
|
||||
|
||||
//FIXME maybe needs a flag in pump config?
|
||||
percent = percent > 500 ? 500 : percent;
|
||||
percent = percent > pumpDescription.maxTempPercent ? pumpDescription.maxTempPercent : percent;
|
||||
|
||||
CommandResult commandResult = runCommand(new SetTbrCommand(percent, durationInMinutes));
|
||||
if (commandResult.enacted) {
|
||||
|
|
Loading…
Reference in a new issue