mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
parent
31c13e4c16
commit
bdc6302ea1
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ void SunGTIL2::handle_char_(uint8_t c) {
|
|||
memcpy(&msg, this->rx_message_.data(), MESSAGE_SIZE);
|
||||
this->rx_message_.clear();
|
||||
|
||||
if (!((msg.end[0] == 0) && (msg.end[38] == 0x08)))
|
||||
if ((msg.end[0] != 0) || (msg.end[38] != 0x08))
|
||||
return;
|
||||
|
||||
ESP_LOGVV(TAG, "Frequency raw value: %02x", msg.frequency);
|
||||
|
|
Loading…
Reference in a new issue