Skip to content

Commit

Permalink
Fix RMT fail to start due to bad ISR priority
Browse files Browse the repository at this point in the history
The RMT config structure was missing initializer for the ISR priority, which was causing RMT to fail to initialize.
  • Loading branch information
me-no-dev authored Oct 23, 2023
1 parent 819aae4 commit 730d827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cores/esp32/esp32-hal-rmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 */
#endif /* SOC_RMT_SUPPORTED */

0 comments on commit 730d827

Please sign in to comment.