[sun_gtil2] clang-tidy fixes for #7822 (#7858)

This commit is contained in:
Keith Burzinski 2024-11-26 04:00:03 -06:00 committed by GitHub
parent 31c13e4c16
commit bdc6302ea1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,7 +83,7 @@ void SunGTIL2::handle_char_(uint8_t c) {
memcpy(&msg, this->rx_message_.data(), MESSAGE_SIZE); memcpy(&msg, this->rx_message_.data(), MESSAGE_SIZE);
this->rx_message_.clear(); this->rx_message_.clear();
if (!((msg.end[0] == 0) && (msg.end[38] == 0x08))) if ((msg.end[0] != 0) || (msg.end[38] != 0x08))
return; return;
ESP_LOGVV(TAG, "Frequency raw value: %02x", msg.frequency); ESP_LOGVV(TAG, "Frequency raw value: %02x", msg.frequency);