IDF: 4.4
When calling
Code: Select all
uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, 0);
I replaced the call with 3 different calls
Code: Select all
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_LOWMED); // same as using 0
if (err == ESP_ERR_NOT_FOUND)
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_HIGH);
if (err == ESP_ERR_NOT_FOUND)
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_SHARED);