mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
do not set forceheatingoff if not in settings
This commit is contained in:
@@ -989,7 +989,7 @@ void Boiler::check_active() {
|
|||||||
|
|
||||||
// check forceheatingoff option
|
// check forceheatingoff option
|
||||||
if (!Helpers::hasValue(forceHeatingOff_, EMS_VALUE_BOOL)) {
|
if (!Helpers::hasValue(forceHeatingOff_, EMS_VALUE_BOOL)) {
|
||||||
EMSESP::webSettingsService.read([&](WebSettings & settings) { forceHeatingOff_ = (settings.boiler_heatingoff || selFlowTemp_ == 0) ? 1 : 0; });
|
EMSESP::webSettingsService.read([&](WebSettings & settings) { forceHeatingOff_ = settings.boiler_heatingoff ? EMS_VALUE_BOOL_ON : 0; });
|
||||||
has_update(&forceHeatingOff_);
|
has_update(&forceHeatingOff_);
|
||||||
}
|
}
|
||||||
static uint32_t lastSendHeatingOff = 0;
|
static uint32_t lastSendHeatingOff = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user