mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 04:42:21 +01:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -70,9 +70,11 @@ void ArduinoI2CBus::set_pins_and_clock_() {
|
||||
|
||||
void ArduinoI2CBus::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "I2C Bus:");
|
||||
ESP_LOGCONFIG(TAG, " SDA Pin: GPIO%u", this->sda_pin_);
|
||||
ESP_LOGCONFIG(TAG, " SCL Pin: GPIO%u", this->scl_pin_);
|
||||
ESP_LOGCONFIG(TAG, " Frequency: %u Hz", this->frequency_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" SDA Pin: GPIO%u\n"
|
||||
" SCL Pin: GPIO%u\n"
|
||||
" Frequency: %u Hz",
|
||||
this->sda_pin_, this->scl_pin_, this->frequency_);
|
||||
if (timeout_ > 0) {
|
||||
#if defined(USE_ESP32)
|
||||
ESP_LOGCONFIG(TAG, " Timeout: %u ms", this->timeout_ / 1000);
|
||||
|
Reference in New Issue
Block a user