[remote_base] Fix compile error on IDF (#8664)

This commit is contained in:
Keith Burzinski 2025-04-30 21:30:36 -05:00 committed by GitHub
parent 71f81d2f18
commit 62646f5f32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
#include "beo4_protocol.h"
#include "esphome/core/log.h"
#include <cinttypes>
namespace esphome {
namespace remote_base {
@ -81,7 +83,7 @@ optional<Beo4Data> 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)