fix(opentherm): fixes the inability to enable channels if the max modulation level has become zero for some reason

This commit is contained in:
Yurii committed 2026-10-12 04:17:33 +03:00
1 parent ee68aba128
commit c6df5b59cf
1 file changed
+12
+12
View File
@@ -734,6 +734,18 @@ protected:
} else if (vars.slave.dhw.active) {
targetMaxModulation = settings.dhw.maxModulation;
} else {
// This fixes the inability to enable channels if
// the maximum modulation level has become zero for some reason.
if (vars.master.heating.enabled && targetMaxModulation < settings.heating.maxModulation) {
targetMaxModulation = settings.heating.maxModulation;
}
if (vars.master.dhw.enabled && targetMaxModulation < settings.dhw.maxModulation) {
targetMaxModulation = settings.dhw.maxModulation;
}
}
if (this->setMaxModulationLevel(targetMaxModulation)) {