mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 13:43:54 +00:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -72,7 +72,7 @@ void MPR121Component::dump_config() {
|
||||
LOG_I2C_DEVICE(this);
|
||||
switch (this->error_code_) {
|
||||
case COMMUNICATION_FAILED:
|
||||
ESP_LOGE(TAG, "Communication with MPR121 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
break;
|
||||
case WRONG_CHIP_STATE:
|
||||
ESP_LOGE(TAG, "MPR121 has wrong default value for CONFIG2?");
|
||||
|
||||
Reference in New Issue
Block a user