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.
This commit is contained in:
parent
819aae4061
commit
730d827553
1 changed files with 2 additions and 1 deletions
|
|
@ -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.invert_in = 0;
|
||||||
rx_cfg.flags.with_dma = 0;
|
rx_cfg.flags.with_dma = 0;
|
||||||
rx_cfg.flags.io_loop_back = 0;
|
rx_cfg.flags.io_loop_back = 0;
|
||||||
|
rx_cfg.intr_priority = 0;
|
||||||
// try to allocate the RMT Channel
|
// try to allocate the RMT Channel
|
||||||
if (ESP_OK != rmt_new_rx_channel(&rx_cfg, &bus->rmt_channel_h)) {
|
if (ESP_OK != rmt_new_rx_channel(&rx_cfg, &bus->rmt_channel_h)) {
|
||||||
log_e("GPIO %d RMT - RX Initialization error.", pin);
|
log_e("GPIO %d RMT - RX Initialization error.", pin);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue