This commit is contained in:
J. Nick Koston 2023-06-05 18:47:47 -05:00
parent d0bafa7d02
commit 23183ba35c
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -295,7 +295,10 @@ namespace ratgdo {
} }
void RATGDOComponent::gdoStateLoop(){ void RATGDOComponent::gdoStateLoop(){
if(!this->swSerial.available()) return; if(!this->swSerial.available()) {
ESP_LOGD(TAG, "No data available")
return;
}
uint8_t serData = this->swSerial.read(); uint8_t serData = this->swSerial.read();
static uint32_t msgStart; static uint32_t msgStart;