mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 04:00:51 -07:00
[esp8266_pwm] Combine log statements to reduce loop blocking (#12885)
This commit is contained in:
@@ -18,9 +18,11 @@ void ESP8266PWM::setup() {
|
||||
this->turn_off();
|
||||
}
|
||||
void ESP8266PWM::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "ESP8266 PWM:");
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"ESP8266 PWM:\n"
|
||||
" Frequency: %.1f Hz",
|
||||
this->frequency_);
|
||||
LOG_PIN(" Pin: ", this->pin_);
|
||||
ESP_LOGCONFIG(TAG, " Frequency: %.1f Hz", this->frequency_);
|
||||
LOG_FLOAT_OUTPUT(this);
|
||||
}
|
||||
void HOT ESP8266PWM::write_state(float state) {
|
||||
|
||||
Reference in New Issue
Block a user