1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 08:41:59 +00:00

[st7567_i2c] Combine log statements to reduce loop blocking (#12975)

This commit is contained in:
J. Nick Koston
2026-01-04 16:51:11 -10:00
committed by GitHub
parent a011d5ea96
commit 2295f57dec

View File

@@ -20,14 +20,14 @@ void I2CST7567::setup() {
void I2CST7567::dump_config() {
LOG_DISPLAY("", "I2CST7567", this);
LOG_I2C_DEVICE(this);
ESP_LOGCONFIG(TAG, " Model: %s", this->model_str_());
LOG_PIN(" Reset Pin: ", this->reset_pin_);
ESP_LOGCONFIG(TAG,
" Model: %s\n"
" Mirror X: %s\n"
" Mirror Y: %s\n"
" Invert Colors: %s",
YESNO(this->mirror_x_), YESNO(this->mirror_y_), YESNO(this->invert_colors_));
this->model_str_(), YESNO(this->mirror_x_), YESNO(this->mirror_y_), YESNO(this->invert_colors_));
LOG_I2C_DEVICE(this);
LOG_PIN(" Reset Pin: ", this->reset_pin_);
LOG_UPDATE_INTERVAL(this);
if (this->error_code_ == COMMUNICATION_FAILED) {