reset tx-retry-conter, increase receive priority

This commit is contained in:
MichaelDvP
2020-06-05 08:34:41 +02:00
parent d9da0bfdde
commit 5f29ad27d7
5 changed files with 8 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ void EMSuart::start(uint8_t tx_mode) {
drop_next_rx = true;
buf_handle = xRingbufferCreate(128, RINGBUF_TYPE_NOSPLIT);
ESP_ERROR_CHECK(uart_isr_register(EMSUART_UART, emsuart_rx_intr_handler, NULL, ESP_INTR_FLAG_IRAM, &uart_handle));
xTaskCreate(emsuart_recvTask, "emsuart_recvTask", 2048, NULL, 12, NULL);
xTaskCreate(emsuart_recvTask, "emsuart_recvTask", 2048, NULL, configMAX_PRIORITIES -1, NULL);
EMS_UART.int_ena.brk_det = 1; // activate only break
}