button
This commit is contained in:
parent
1ac1c54841
commit
69b87e6318
|
@ -225,8 +225,10 @@ namespace ratgdo {
|
||||||
static uint16_t byteCount = 0;
|
static uint16_t byteCount = 0;
|
||||||
static bool isStatus = false;
|
static bool isStatus = false;
|
||||||
|
|
||||||
while (this->available()) {
|
if (!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");
|
||||||
|
@ -280,7 +282,6 @@ namespace ratgdo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void RATGDOComponent::statusUpdateLoop()
|
void RATGDOComponent::statusUpdateLoop()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue