mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 14:48:18 +00:00
mhz19: report received responce if it's invalid
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
This commit is contained in:
parent
909cec7016
commit
2ced5857d7
@ -34,7 +34,7 @@ void MHZ19Component::update() {
|
||||
}
|
||||
|
||||
if (response[0] != 0xFF || response[1] != 0x86) {
|
||||
ESP_LOGW(TAG, "Invalid preamble from MHZ19!");
|
||||
ESP_LOGW(TAG, "Invalid response from MHZ19! [%s]", dump_data_buf(response));
|
||||
this->status_set_warning();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user