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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user