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