From 221e28c996b554c125cdb152d113d1b528c180ae Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 3 May 2022 07:32:51 +0200 Subject: [PATCH] uart checks --- src/uart/emsuart_esp32.cpp | 5 ----- src/version.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/uart/emsuart_esp32.cpp b/src/uart/emsuart_esp32.cpp index a8ee38d8a..dcd04de4b 100644 --- a/src/uart/emsuart_esp32.cpp +++ b/src/uart/emsuart_esp32.cpp @@ -85,9 +85,6 @@ void EMSuart::start(const uint8_t tx_mode, const uint8_t rx_gpio, const uint8_t uart_param_config(EMSUART_NUM, &uart_config); uart_set_pin(EMSUART_NUM, tx_gpio, rx_gpio, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE); uart_set_rx_full_threshold(EMSUART_NUM, 1); - // using own interrupt - // uart_isr_free(EMSUART_NUM); - // uart_isr_register(EMSUART_NUM, uart_intr_handle, NULL, ESP_INTR_FLAG_IRAM, &handle_console)); xTaskCreate(uart_event_task, "uart_event_task", 2048, NULL, configMAX_PRIORITIES - 1, NULL); } tx_mode_ = tx_mode; @@ -153,8 +150,6 @@ uint16_t EMSuart::transmit(const uint8_t * buf, const uint8_t len) { // mode 1: wait for echo after each byte for (uint8_t i = 0; i < len; i++) { - // or use - // uart_get_buffered_data_len(EMSUART_NUM, size_t *size); uint8_t _usrxc = uxQueueMessagesWaiting(uart_queue); uart_write_bytes(EMSUART_NUM, &buf[i], 1); uint16_t timeoutcnt = EMSUART_TX_TIMEOUT; diff --git a/src/version.h b/src/version.h index b411d73c8..442e23722 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define EMSESP_APP_VERSION "3.4.0b16" +#define EMSESP_APP_VERSION "3.4.0b16idf4"