From 8f8d8ed8f96842e1ebe96c608f989c0da608e22d Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 28 Aug 2020 21:03:01 -0400 Subject: [PATCH] Revert "reducing confusion?" This reverts commit f80b27ab this was NOT reducing the confusion --- firmware/console/binary/tunerstudio_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/console/binary/tunerstudio_io.cpp b/firmware/console/binary/tunerstudio_io.cpp index 28aae85b90..7bb4d2bd26 100644 --- a/firmware/console/binary/tunerstudio_io.cpp +++ b/firmware/console/binary/tunerstudio_io.cpp @@ -166,10 +166,10 @@ int sr5ReadDataTimeout(ts_channel_s *tsChannel, uint8_t * buffer, int size, int extern uart_dma_s tsUartDma; return (int)iqReadTimeout(&tsUartDma.fifoRxQueue, (uint8_t * )buffer, (size_t)size, timeout); } - firmwareError(CUSTOM_ERR_6126, "Unexpected DMA situation no uartp"); #endif -#if TS_UART_MODE +#if TS_UART_DMA_MODE +#elif TS_UART_MODE UNUSED(tsChannel); size_t received = (size_t)size; uartReceiveTimeout(TS_UART_DEVICE, &received, buffer, timeout);