From c6df5b59cfb74c618992e426ba94f147c976bada Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 12 Oct 2026 04:17:33 +0300 Subject: [PATCH] fix(opentherm): fixes the inability to enable channels if the max modulation level has become zero for some reason --- src/OpenThermTask.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/OpenThermTask.h b/src/OpenThermTask.h index 81158a4..2780c1d 100644 --- a/src/OpenThermTask.h +++ b/src/OpenThermTask.h @@ -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)) {