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:
Me No Dev 2023-10-23 11:45:42 +03:00 committed by GitHub
parent 819aae4061
commit 730d827553
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);