From 909f292c75d9e220b7bc538f688d2f4ee7bdfd24 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 5 Jul 2020 21:47:30 +0200 Subject: [PATCH] uart fixed delay --- src/uart/emsuart_esp32.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uart/emsuart_esp32.cpp b/src/uart/emsuart_esp32.cpp index dde12c0e0..660728929 100644 --- a/src/uart/emsuart_esp32.cpp +++ b/src/uart/emsuart_esp32.cpp @@ -213,7 +213,8 @@ uint16_t EMSuart::transmit(const uint8_t * buf, const uint8_t len) { } if (tx_mode_ == 5) { // wait before sending - vTaskDelay(4 / portTICK_PERIOD_MS); + //vTaskDelay(4 / portTICK_PERIOD_MS); + delayMicroseconds(4000); for (uint8_t i = 0; i < len; i++) { EMS_UART.fifo.rw_byte = buf[i]; }