[x9c] Combine log statements to reduce loop blocking (#12934)

This commit is contained in:
J. Nick Koston
2026-01-04 13:03:56 -10:00
committed by GitHub
parent 161545584d
commit b291f359ae

View File

@@ -62,14 +62,14 @@ void X9cOutput::write_state(float state) {
}
void X9cOutput::dump_config() {
ESP_LOGCONFIG(TAG, "X9C Potentiometer Output:");
LOG_PIN(" Chip Select Pin: ", this->cs_pin_);
LOG_PIN(" Increment Pin: ", this->inc_pin_);
LOG_PIN(" Up/Down Pin: ", this->ud_pin_);
ESP_LOGCONFIG(TAG,
"X9C Potentiometer Output:\n"
" Initial Value: %f\n"
" Step Delay: %d",
this->initial_value_, this->step_delay_);
LOG_PIN(" Chip Select Pin: ", this->cs_pin_);
LOG_PIN(" Increment Pin: ", this->inc_pin_);
LOG_PIN(" Up/Down Pin: ", this->ud_pin_);
LOG_FLOAT_OUTPUT(this);
}