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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user