This commit is contained in:
J. Nick Koston 2023-06-09 14:17:24 -05:00
parent fc0105512e
commit 6f9dafa403
No known key found for this signature in database
1 changed files with 37 additions and 38 deletions

View File

@ -287,10 +287,8 @@ namespace ratgdo {
void RATGDOComponent::gdoStateLoop() void RATGDOComponent::gdoStateLoop()
{ {
if (!this->available()) { while (this->available()) {
// ESP_LOGD(TAG, "No data available input:%d output:%d", this->input_gdo_pin_->get_pin(), this->output_gdo_pin_->get_pin()); // ESP_LOGD(TAG, "No data available input:%d output:%d", this->input_gdo_pin_->get_pin(), this->output_gdo_pin_->get_pin());
return;
}
uint8_t serData; uint8_t serData;
if (!this->read_byte(&serData)) { if (!this->read_byte(&serData)) {
ESP_LOGD(TAG, "Failed to read byte"); ESP_LOGD(TAG, "Failed to read byte");
@ -334,6 +332,7 @@ namespace ratgdo {
} }
} }
} }
}
void RATGDOComponent::statusUpdateLoop() void RATGDOComponent::statusUpdateLoop()
{ {