Fix xpt2046 for IDF 5 (#5614)

This commit is contained in:
Keith Burzinski 2023-10-27 17:36:43 -05:00 committed by GitHub
parent 563e15e8a7
commit d4cb29a380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
#include "esphome/core/helpers.h" #include "esphome/core/helpers.h"
#include <algorithm> #include <algorithm>
#include <cinttypes>
namespace esphome { namespace esphome {
namespace xpt2046 { namespace xpt2046 {
@ -151,7 +152,7 @@ void XPT2046Component::dump_config() {
ESP_LOGCONFIG(TAG, " Invert Y: %s", YESNO(this->invert_y_)); ESP_LOGCONFIG(TAG, " Invert Y: %s", YESNO(this->invert_y_));
ESP_LOGCONFIG(TAG, " threshold: %d", this->threshold_); 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); LOG_UPDATE_INTERVAL(this);
} }