From 730d827553cf3ae357eb62a3b66f97b13a255177 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Mon, 23 Oct 2023 11:45:42 +0300 Subject: [PATCH] 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. --- cores/esp32/esp32-hal-rmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index 9131970a608..e5838a91f25 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -537,6 +537,7 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_ rx_cfg.flags.invert_in = 0; rx_cfg.flags.with_dma = 0; rx_cfg.flags.io_loop_back = 0; + rx_cfg.intr_priority = 0; // try to allocate the RMT Channel if (ESP_OK != rmt_new_rx_channel(&rx_cfg, &bus->rmt_channel_h)) { 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_ return false; } -#endif /* SOC_RMT_SUPPORTED */ \ No newline at end of file +#endif /* SOC_RMT_SUPPORTED */