From 685fa2a9f8ad58c0b267ece3aad9292ef6b5e1fa Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 22 Dec 2021 13:02:43 +0100 Subject: [PATCH] Update esp32-hal-rmt.c --- cores/esp32/esp32-hal-rmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index 9eb09404824..04a9282dca7 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -535,8 +535,8 @@ rmt_obj_t* rmtInit(int pin, bool tx_not_rx, rmt_reserve_memsize_t memsize) ch_start = RMT_RX_CH_START; ch_end = RMT_RX_CH_END; } + j = 0; // fixes compiling option -Werror=maybe-uninitialized for (i=ch_start; i<=ch_end; i++) { - j = 0; // fixes compiling option -Werror=maybe-uninitialized for (j=0; j