[cse7766] clang-tidy fixes for #7822 (#7846)

This commit is contained in:
Keith Burzinski 2024-11-26 04:04:50 -06:00 committed by GitHub
parent 2fa8d907b3
commit cd1ee96606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ bool CSE7766Component::check_byte_() {
uint8_t index = this->raw_data_index_;
uint8_t byte = this->raw_data_[index];
if (index == 0) {
return !((byte != 0x55) && ((byte & 0xF0) != 0xF0) && (byte != 0xAA));
return (byte == 0x55) || ((byte & 0xF0) == 0xF0) || (byte == 0xAA);
}
if (index == 1) {