mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
tidy: Boolean expression can be simplified by DeMorgan's theorem
This commit is contained in:
parent
3c7b9ea569
commit
edd04592b3
@ -22,7 +22,7 @@ void CM1106Component::update() {
|
|||||||
return;
|
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],
|
ESP_LOGW(TAG, "Got wrong UART response from CM1106: %02X %02X %02X %02X...", response[0], response[1], response[2],
|
||||||
response[3]);
|
response[3]);
|
||||||
this->status_set_warning();
|
this->status_set_warning();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user