revert commit 1a03b98, used fixed buffer length

This commit is contained in:
MichaelDvP
2026-01-02 16:13:14 +01:00
parent a49a5537d3
commit ea6b7c0be0

View File

@@ -52,7 +52,8 @@ void EMSuart::uart_event_task(void * pvParameters) {
uart_read_bytes(EMSUART_NUM, telegram, length, portMAX_DELAY);
EMSESP::incoming_telegram(telegram, (uint8_t)(length - 1));
} else { // flush buffer up to break
uart_flush_input(EMSUART_NUM);
uint8_t buf[UART_FIFO_LEN];
uart_read_bytes(EMSUART_NUM, buf, length, portMAX_DELAY);
}
length = 0;
} else if (event.type == UART_BUFFER_FULL) {