Skip to content

Commit

Permalink
forceHeatingOff in E5 check telegram length
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Oct 18, 2023
1 parent 2583da8 commit dc739b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/boiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ void Boiler::process_UBAMonitorSlowPlus(std::shared_ptr<const Telegram> 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);
}
Expand Down

0 comments on commit dc739b9

Please sign in to comment.