Fix senseair flush input buffer wrong log level (#1194)

See also https://github.com/esphome/esphome/pull/1017/files
This commit is contained in:
Otto Winter 2020-07-24 22:36:59 +02:00 committed by GitHub
parent 5759de079b
commit 7524493c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,11 +24,11 @@ void SenseAirComponent::update() {
this->status_set_warning();
while (this->available()) {
unsigned char b;
uint8_t b;
if (this->read_byte(&b)) {
ESP_LOGD(TAG, " ... %02x", b);
ESP_LOGV(TAG, " ... %02x", b);
} else {
ESP_LOGD(TAG, " ... nothing read");
ESP_LOGV(TAG, " ... nothing read");
}
}
return;