mirror of
https://github.com/esphome/esphome.git
synced 2025-10-03 02:22:25 +01:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -27,7 +27,7 @@ void I2CSSD1327::dump_config() {
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
|
||||
if (this->error_code_ == COMMUNICATION_FAILED) {
|
||||
ESP_LOGE(TAG, "Communication with SSD1327 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
}
|
||||
void I2CSSD1327::command(uint8_t value) { this->write_byte(0x00, value); }
|
||||
|
Reference in New Issue
Block a user