mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
reset wait_validate
This commit is contained in:
@@ -965,6 +965,9 @@ bool EMSESP::process_telegram(std::shared_ptr<const Telegram> telegram) {
|
|||||||
if (!telegram_found && telegram->message_length > 0) {
|
if (!telegram_found && telegram->message_length > 0) {
|
||||||
emsdevice->add_handlers_ignored(telegram->type_id);
|
emsdevice->add_handlers_ignored(telegram->type_id);
|
||||||
}
|
}
|
||||||
|
if (wait_validate_ == telegram->type_id) {
|
||||||
|
wait_validate_ = 0;
|
||||||
|
}
|
||||||
if (Mqtt::connected() && telegram_found
|
if (Mqtt::connected() && telegram_found
|
||||||
&& ((mqtt_.get_publish_onchange(emsdevice->device_type()) && emsdevice->has_update())
|
&& ((mqtt_.get_publish_onchange(emsdevice->device_type()) && emsdevice->has_update())
|
||||||
|| (telegram->type_id == publish_id_ && telegram->dest == EMSbus::ems_bus_id()))) {
|
|| (telegram->type_id == publish_id_ && telegram->dest == EMSbus::ems_bus_id()))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user