mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	[remote_base] Fix compile error on IDF (#8664)
This commit is contained in:
		| @@ -1,6 +1,8 @@ | |||||||
| #include "beo4_protocol.h" | #include "beo4_protocol.h" | ||||||
| #include "esphome/core/log.h" | #include "esphome/core/log.h" | ||||||
|  |  | ||||||
|  | #include <cinttypes> | ||||||
|  |  | ||||||
| namespace esphome { | namespace esphome { | ||||||
| namespace remote_base { | namespace remote_base { | ||||||
|  |  | ||||||
| @@ -81,7 +83,7 @@ optional<Beo4Data> Beo4Protocol::decode(RemoteReceiveData src) { | |||||||
|     int32_t jc = 0; |     int32_t jc = 0; | ||||||
|     uint32_t pre_bit = 0; |     uint32_t pre_bit = 0; | ||||||
|     uint32_t cnt_bit = 0; |     uint32_t cnt_bit = 0; | ||||||
|     ESP_LOGD(TAG, "Beo4: n_sym=%d ", n_sym); |     ESP_LOGD(TAG, "Beo4: n_sym=%" PRId32, n_sym); | ||||||
|     for (jc = 0, ic = 0; ic < (n_sym - 1); ic += 2, jc++) { |     for (jc = 0, ic = 0; ic < (n_sym - 1); ic += 2, jc++) { | ||||||
|       int32_t pulse_width = src[ic] - src[ic + 1]; |       int32_t pulse_width = src[ic] - src[ic + 1]; | ||||||
|       // suppress TSOP7000 (dummy pulses) |       // suppress TSOP7000 (dummy pulses) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user