mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -17,8 +17,10 @@ void PowerSupply::setup() {
|
||||
void PowerSupply::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Power Supply:");
|
||||
LOG_PIN(" Pin: ", this->pin_);
|
||||
ESP_LOGCONFIG(TAG, " Time to enable: %" PRIu32 " ms", this->enable_time_);
|
||||
ESP_LOGCONFIG(TAG, " Keep on time: %.1f s", this->keep_on_time_ / 1000.0f);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" Time to enable: %" PRIu32 " ms\n"
|
||||
" Keep on time: %.1f s",
|
||||
this->enable_time_, this->keep_on_time_ / 1000.0f);
|
||||
if (this->enable_on_boot_)
|
||||
ESP_LOGCONFIG(TAG, " Enabled at startup: True");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user