use pumpdescription.maxTempPercent to cutoff temps

This commit is contained in:
AdrianLxM 2017-07-26 22:35:13 +02:00
parent 13173e48c1
commit 8937fbe574

View file

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