From 578783382a07d777731fb2d237e5baea3e6e449f Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 24 Mar 2019 15:55:20 +0100 Subject: [PATCH] length is single byte as buffer should not exceed 32 --- src/emsuart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emsuart.cpp b/src/emsuart.cpp index fb4827ea2..788d9bd46 100644 --- a/src/emsuart.cpp +++ b/src/emsuart.cpp @@ -24,8 +24,8 @@ os_event_t recvTaskQueue[EMSUART_recvTaskQueueLen]; // our Rx queue // Important: do not use ICACHE_FLASH_ATTR ! // static void emsuart_rx_intr_handler(void * para) { - static uint16_t length; - static uint8_t uart_buffer[EMS_MAXBUFFERSIZE]; + static uint8_t length; + static uint8_t uart_buffer[EMS_MAXBUFFERSIZE]; // is a new buffer? if so init the thing for a new telegram if (EMS_Sys_Status.emsRxStatus == EMS_RX_STATUS_IDLE) {