mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix xpt2046 for IDF 5 (#5614)
This commit is contained in:
		| @@ -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); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user