refactor: optimization of OT requests for CH2

This commit is contained in:
Yurii
2024-12-04 05:55:01 +03:00
parent 50280f6db3
commit 105a79f72c

View File

@@ -1038,7 +1038,8 @@ protected:
}
// Set CH2 temp
if (vars.master.ch2.enabled && !settings.opentherm.nativeHeatingControl) {
if (!settings.opentherm.nativeHeatingControl && vars.master.ch2.enabled) {
if (settings.opentherm.heatingCh1ToCh2 || settings.opentherm.dhwToCh2) {
// Converted target CH2 temp
float convertedTemp = convertTemp(
vars.master.ch2.targetTemp,
@@ -1061,6 +1062,7 @@ protected:
}
}
}
}
void initialize() {
// Not all boilers support these, only try once when the boiler becomes connected