From d4cb29a38050b1dd5c838a60b689f406753c058b Mon Sep 17 00:00:00 2001 From: Keith Burzinski Date: Fri, 27 Oct 2023 17:36:43 -0500 Subject: [PATCH] Fix xpt2046 for IDF 5 (#5614) --- esphome/components/xpt2046/xpt2046.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/xpt2046/xpt2046.cpp b/esphome/components/xpt2046/xpt2046.cpp index 6c7c55a995..078a1b01e9 100644 --- a/esphome/components/xpt2046/xpt2046.cpp +++ b/esphome/components/xpt2046/xpt2046.cpp @@ -3,6 +3,7 @@ #include "esphome/core/helpers.h" #include +#include namespace esphome { namespace xpt2046 { @@ -151,7 +152,7 @@ void XPT2046Component::dump_config() { ESP_LOGCONFIG(TAG, " Invert Y: %s", YESNO(this->invert_y_)); ESP_LOGCONFIG(TAG, " threshold: %d", this->threshold_); - ESP_LOGCONFIG(TAG, " Report interval: %u", this->report_millis_); + ESP_LOGCONFIG(TAG, " Report interval: %" PRIu32, this->report_millis_); LOG_UPDATE_INTERVAL(this); }