Skip to content

Commit 685fa2a

Browse files
authored
Update esp32-hal-rmt.c
1 parent b2f7f0a commit 685fa2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-rmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ rmt_obj_t* rmtInit(int pin, bool tx_not_rx, rmt_reserve_memsize_t memsize)
535535
ch_start = RMT_RX_CH_START;
536536
ch_end = RMT_RX_CH_END;
537537
}
538+
j = 0; // fixes compiling option -Werror=maybe-uninitialized
538539
for (i=ch_start; i<=ch_end; i++) {
539-
j = 0; // fixes compiling option -Werror=maybe-uninitialized
540540
for (j=0; j<buffers && i+j <= ch_end; j++) {
541541
// if the space is ocupied break and continue on other channel
542542
if (g_rmt_objects[i+j].allocated) {

0 commit comments

Comments
 (0)