mirror of
https://github.com/esphome/esphome.git
synced 2025-10-06 20:03:46 +01:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -22,7 +22,7 @@ void DS1307Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "DS1307:");
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "Communication with DS1307 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
ESP_LOGCONFIG(TAG, " Timezone: '%s'", this->timezone_.c_str());
|
||||
}
|
||||
|
Reference in New Issue
Block a user