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); }