1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[xpt2046] Combine log statements to reduce loop blocking (#12937)

This commit is contained in:
J. Nick Koston
2026-01-04 13:03:22 -10:00
committed by GitHub
parent 5713d69efe
commit 3ea11d4e59

View File

@@ -59,10 +59,8 @@ void XPT2046Component::update_touches() {
}
void XPT2046Component::dump_config() {
ESP_LOGCONFIG(TAG, "XPT2046:");
LOG_PIN(" IRQ Pin: ", this->irq_pin_);
ESP_LOGCONFIG(TAG,
"XPT2046:\n"
" X min: %d\n"
" X max: %d\n"
" Y min: %d\n"
@@ -73,7 +71,7 @@ void XPT2046Component::dump_config() {
" threshold: %d",
this->x_raw_min_, this->x_raw_max_, this->y_raw_min_, this->y_raw_max_, YESNO(this->swap_x_y_),
YESNO(this->invert_x_), YESNO(this->invert_y_), this->threshold_);
LOG_PIN(" IRQ Pin: ", this->irq_pin_);
LOG_UPDATE_INTERVAL(this);
}