mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 04:32:23 +01:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -25,7 +25,7 @@ void HTE501Component::dump_config() {
|
||||
LOG_I2C_DEVICE(this);
|
||||
switch (this->error_code_) {
|
||||
case COMMUNICATION_FAILED:
|
||||
ESP_LOGE(TAG, "Communication with HTE501 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
break;
|
||||
case CRC_CHECK_FAILED:
|
||||
ESP_LOGE(TAG, "The crc check failed");
|
||||
|
Reference in New Issue
Block a user