From 39bd77242a48e33e0567139ca879396de64306a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 26 Mar 2024 17:07:52 +0000 Subject: [PATCH] Update lora.cpp --- esphome/components/lora/lora.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index 874330d386..2bf593f608 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -151,6 +151,8 @@ void Lora::check_for_message_() { std::string buffer; std::vector data; bool pin_data_found = false; + if (!this->available()) + return; ESP_LOGD(TAG, "Reading serial"); while (this->available()) { uint8_t c;