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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user