mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
Update lora.cpp
This commit is contained in:
parent
21493c3597
commit
39bd77242a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue