From dc739b97aba006342fe20c9e436689848e3c75c3 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 18 Oct 2023 07:55:19 +0200 Subject: [PATCH] forceHeatingOff in E5 check telegram length --- src/devices/boiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 788626866..f173ee285 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -1282,7 +1282,7 @@ void Boiler::process_UBAMonitorSlowPlus(std::shared_ptr telegram has_update(telegram, heatStarts_, 22, 3); // force to 3 bytes has_update(telegram, heatingPumpMod_, 25); - if (forceHeatingOff_ == EMS_VALUE_BOOL_ON && telegram->dest == 0) { + if (forceHeatingOff_ == EMS_VALUE_BOOL_ON && telegram->dest == 0 && telegram->offset == 0 && telegram->message_length > 10) { uint8_t data[] = {0, 0, 0, 0}; write_command(EMS_TYPE_UBASetPoints, 0, data, sizeof(data), 0); }