1
0
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:
Igor Mammedov 2019-05-23 21:43:49 +02:00
parent 909cec7016
commit 2ced5857d7

View File

@ -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;
}