1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

tidy: Boolean expression can be simplified by DeMorgan's theorem

This commit is contained in:
Andrew J.Swan 2025-02-21 14:16:01 +02:00
parent 3c7b9ea569
commit edd04592b3

View File

@ -22,7 +22,7 @@ void CM1106Component::update() {
return;
}
if (!(response[0] == 0x16 && response[1] == 0x05 && response[2] == 0x01)) {
if (response[0] != 0x16 || response[1] != 0x05 || response[2] != 0x01) {
ESP_LOGW(TAG, "Got wrong UART response from CM1106: %02X %02X %02X %02X...", response[0], response[1], response[2],
response[3]);
this->status_set_warning();