mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-11 08:54:51 +05:00
fix(opentherm): fixes the inability to enable channels if the max modulation level has become zero for some reason
This commit is contained in:
1 parent
ee68aba128
commit
c6df5b59cf
1 file changed
+12
@@ -734,6 +734,18 @@ protected:
|
|||||||
|
|
||||||
} else if (vars.slave.dhw.active) {
|
} else if (vars.slave.dhw.active) {
|
||||||
targetMaxModulation = settings.dhw.maxModulation;
|
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)) {
|
if (this->setMaxModulationLevel(targetMaxModulation)) {
|
||||||
|
|||||||
Reference in new issue
Block a user