From 23183ba35c430998f76beeff06d6c9a61dc6d7d7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 18:47:47 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 07adad4..71fbb17 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -295,7 +295,10 @@ namespace ratgdo { } 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(); static uint32_t msgStart;