From cee465b963f2b45d8ab963f8b57c5c34825cc523 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 22 Jun 2020 01:18:58 -0400 Subject: [PATCH] UART DMA for "primary" connector #1528 --- firmware/console/console_io.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/console/console_io.cpp b/firmware/console/console_io.cpp index b7f8747342..5911268414 100644 --- a/firmware/console/console_io.cpp +++ b/firmware/console/console_io.cpp @@ -211,6 +211,8 @@ static const struct BaseChannelVMT uartChannelVmt = { static const BaseChannel uartChannel = { .vmt = &uartChannelVmt }; #endif /* EFI_CONSOLE_UART_DEVICE */ +ts_channel_s primaryChannel; + #if EFI_PROD_CODE || EFI_EGT bool isUsbSerial(BaseChannel * channel) { @@ -220,9 +222,6 @@ bool isUsbSerial(BaseChannel * channel) { return false; #endif } - -ts_channel_s primaryChannel; - BaseChannel * getConsoleChannel(void) { #if PRIMARY_UART_DMA_MODE if (primaryChannel.uartp != nullptr) {