Introduce "communication failed" log macro (#8939)
This commit is contained in:
1 parent
64e4589f4e
commit
44f1ff10e6
109 files changed
+162
-152
No files matched your search
@@ -19,7 +19,7 @@ void TMP102Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "TMP102:");
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "Communication failed");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
LOG_SENSOR(" ", "Temperature", this);
|
||||
|
||||
Reference in new issue
Block a user