mirror of
https://github.com/esphome/esphome.git
synced 2025-09-24 22:22:22 +01:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -182,7 +182,7 @@ void BME280Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "BME280:");
|
||||
switch (this->error_code_) {
|
||||
case COMMUNICATION_FAILED:
|
||||
ESP_LOGE(TAG, "Communication with BME280 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
break;
|
||||
case WRONG_CHIP_ID:
|
||||
ESP_LOGE(TAG, "BME280 has wrong chip ID! Is it a BME280?");
|
||||
|
Reference in New Issue
Block a user