reset wait_validate

This commit is contained in:
MichaelDvP
2024-01-28 12:15:16 +01:00
parent 52bb6b8218
commit ce6e89338f

View File

@@ -965,6 +965,9 @@ bool EMSESP::process_telegram(std::shared_ptr<const Telegram> telegram) {
if (!telegram_found && telegram->message_length > 0) {
emsdevice->add_handlers_ignored(telegram->type_id);
}
if (wait_validate_ == telegram->type_id) {
wait_validate_ = 0;
}
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()))) {