Skip to content

Commit 730d827

Browse files
authored
Fix RMT fail to start due to bad ISR priority
The RMT config structure was missing initializer for the ISR priority, which was causing RMT to fail to initialize.
1 parent 819aae4 commit 730d827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cores/esp32/esp32-hal-rmt.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_
537537
rx_cfg.flags.invert_in = 0;
538538
rx_cfg.flags.with_dma = 0;
539539
rx_cfg.flags.io_loop_back = 0;
540+
rx_cfg.intr_priority = 0;
540541
// try to allocate the RMT Channel
541542
if (ESP_OK != rmt_new_rx_channel(&rx_cfg, &bus->rmt_channel_h)) {
542543
log_e("GPIO %d RMT - RX Initialization error.", pin);
@@ -595,4 +596,4 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_
595596
return false;
596597
}
597598

598-
#endif /* SOC_RMT_SUPPORTED */
599+
#endif /* SOC_RMT_SUPPORTED */

0 commit comments

Comments
 (0)