[rp2040_pwm] Combine log statements to reduce loop blocking (#12952)

This commit is contained in:
J. Nick Koston
2026-01-04 16:09:51 -10:00
committed by GitHub
parent 452fcd56dd
commit 4f20c1ceb1
+4 -2
View File
@@ -36,9 +36,11 @@ void RP2040PWM::setup_pwm_() {
}
void RP2040PWM::dump_config() {
ESP_LOGCONFIG(TAG, "RP2040 PWM:");
ESP_LOGCONFIG(TAG,
"RP2040 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 RP2040PWM::write_state(float state) {