diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 3ecc78982..c2f1bd472 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -963,8 +963,9 @@ bool EMSESP::process_telegram(std::shared_ptr telegram) { if (!telegram_found && telegram->message_length > 0) { emsdevice->add_handlers_ignored(telegram->type_id); } - if (Mqtt::connected() && telegram_found && (mqtt_.get_publish_onchange(emsdevice->device_type()) && emsdevice->has_update()) - || (telegram->type_id == publish_id_ && telegram->dest == EMSbus::ems_bus_id())) { + if (Mqtt::connected() && telegram_found + && ((mqtt_.get_publish_onchange(emsdevice->device_type()) && emsdevice->has_update()) + || (telegram->type_id == publish_id_ && telegram->dest == EMSbus::ems_bus_id()))) { if (telegram->type_id == publish_id_) { publish_id_ = 0; }