reducing confusion?

This commit is contained in:
rusefi 2020-08-28 08:58:51 -04:00
parent bf2d51b8c3
commit f80b27ab12
1 changed files with 2 additions and 2 deletions

View File

@ -166,10 +166,10 @@ int sr5ReadDataTimeout(ts_channel_s *tsChannel, uint8_t * buffer, int size, int
extern uart_dma_s tsUartDma; extern uart_dma_s tsUartDma;
return (int)iqReadTimeout(&tsUartDma.fifoRxQueue, (uint8_t * )buffer, (size_t)size, timeout); return (int)iqReadTimeout(&tsUartDma.fifoRxQueue, (uint8_t * )buffer, (size_t)size, timeout);
} }
firmwareError(CUSTOM_ERR_6126, "Unexpected DMA situation no uartp");
#endif #endif
#if TS_UART_DMA_MODE #if TS_UART_MODE
#elif TS_UART_MODE
UNUSED(tsChannel); UNUSED(tsChannel);
size_t received = (size_t)size; size_t received = (size_t)size;
uartReceiveTimeout(TS_UART_DEVICE, &received, buffer, timeout); uartReceiveTimeout(TS_UART_DEVICE, &received, buffer, timeout);