1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-20 04:02:21 +01:00

Reduce ESP_LOGCONFIG calls (#9026)

This commit is contained in:
J. Nick Koston
2025-06-08 19:02:30 -05:00
committed by GitHub
parent 80dddb4cae
commit c0b05ada1a
218 changed files with 1569 additions and 931 deletions

View File

@@ -160,11 +160,16 @@ void WeikaiComponentI2C::setup() {
}
void WeikaiComponentI2C::dump_config() {
ESP_LOGCONFIG(TAG, "Initialization of %s with %d UARTs completed", this->get_name(), this->children_.size());
ESP_LOGCONFIG(TAG, " Crystal: %" PRIu32, this->crystal_);
if (test_mode_)
ESP_LOGCONFIG(TAG, " Test mode: %d", test_mode_);
ESP_LOGCONFIG(TAG, " Transfer buffer size: %d", XFER_MAX_SIZE);
ESP_LOGCONFIG(TAG,
"Initialization of %s with %d UARTs completed\n"
" Crystal: %" PRIu32,
this->get_name(), this->children_.size(), this->crystal_);
if (test_mode_) {
ESP_LOGCONFIG(TAG,
" Test mode: %d\n"
" Transfer buffer size: %d",
test_mode_, XFER_MAX_SIZE);
}
this->address_ = this->base_address_; // we restore the base_address before display (less confusing)
LOG_I2C_DEVICE(this);