From 62646f5f321821f3a5d5bd578a6e82c2f0811be8 Mon Sep 17 00:00:00 2001 From: Keith Burzinski Date: Wed, 30 Apr 2025 21:30:36 -0500 Subject: [PATCH] [remote_base] Fix compile error on IDF (#8664) --- esphome/components/remote_base/beo4_protocol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/remote_base/beo4_protocol.cpp b/esphome/components/remote_base/beo4_protocol.cpp index 9f8d5e72c9..8f5a642401 100644 --- a/esphome/components/remote_base/beo4_protocol.cpp +++ b/esphome/components/remote_base/beo4_protocol.cpp @@ -1,6 +1,8 @@ #include "beo4_protocol.h" #include "esphome/core/log.h" +#include + namespace esphome { namespace remote_base { @@ -81,7 +83,7 @@ optional Beo4Protocol::decode(RemoteReceiveData src) { int32_t jc = 0; uint32_t pre_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++) { int32_t pulse_width = src[ic] - src[ic + 1]; // suppress TSOP7000 (dummy pulses)