1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Fix braceless else statements (#7799)

This commit is contained in:
Peter Zich
2025-01-08 22:47:30 -08:00
committed by GitHub
parent 78543e1e15
commit a498fb5dcf
17 changed files with 55 additions and 35 deletions

View File

@@ -97,8 +97,9 @@ void GCJA5Component::parse_data_() {
if (this->rx_message_[0] != 0x02 || this->rx_message_[31] != 0x03 || !this->calculate_checksum_()) {
ESP_LOGVV(TAG, "Discarding bad packet - failed checks.");
return;
} else
} else {
ESP_LOGVV(TAG, "Good packet found.");
}
this->have_good_data_ = true;
uint8_t status = this->rx_message_[29];