Update lora.cpp

This commit is contained in:
Daniël Koek 2024-03-26 17:07:52 +00:00
parent 21493c3597
commit 39bd77242a

View file

@ -151,6 +151,8 @@ void Lora::check_for_message_() {
std::string buffer; std::string buffer;
std::vector<uint8_t> data; std::vector<uint8_t> data;
bool pin_data_found = false; bool pin_data_found = false;
if (!this->available())
return;
ESP_LOGD(TAG, "Reading serial"); ESP_LOGD(TAG, "Reading serial");
while (this->available()) { while (this->available()) {
uint8_t c; uint8_t c;