do not remove fetches

This commit is contained in:
MichaelDvP
2023-11-15 11:48:18 +01:00
parent 4a1ea99ee7
commit cf89a06437
2 changed files with 4 additions and 2 deletions

View File

@@ -333,7 +333,7 @@ bool EMSdevice::is_fetch(uint16_t telegram_id) const {
return false;
}
// get status of automatic fetch for a telegramID
// get receive status of telegramID
bool EMSdevice::is_received(uint16_t telegram_id) const {
for (const auto & tf : telegram_functions_) {
if (tf.telegram_type_id_ == telegram_id) {
@@ -1821,7 +1821,8 @@ bool EMSdevice::handle_telegram(std::shared_ptr<const Telegram> telegram) {
#if defined(EMSESP_DEBUG)
EMSESP::logger().debug("This telegram (%s) is not recognized by the EMS bus", tf.telegram_type_name_);
#endif
tf.fetch_ = false;
// removing fetch causes issue: https://github.com/emsesp/EMS-ESP32/issues/1420
// tf.fetch_ = false;
return false;
}
if (telegram->message_length > 0) {