fix: Correct UART ports for Battery Swapping Station

stable
Rakshita 2024-12-02 14:43:35 +05:30
parent 49357f5d62
commit ec5ae72cab
1 changed files with 5 additions and 5 deletions

View File

@ -74,14 +74,14 @@ IVEC_EcuCommonErr_e xECU_UARTInit(McalUartHandle_s* prvUartHandle, uint32_t spee
}
IVEC_ECU_LOG(LOG_STRING, "Initilising UART");
#if (UART_PIN_SELECTION == 1 || ((uartCount == 1) && (UART_PIN_SELECTION == 3)))
#if (UART_PIN_SELECTION == 1 || ((uartCount == 2) && (UART_PIN_SELECTION == 3)))
prvUartHandle->eUartPortNumber = mcalUART_PORT3;
uartCount = 2;
#elif (UART_PIN_SELECTION == 2 || ((uartCount == 2) && (UART_PIN_SELECTION == 3)))
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
uartCount = 1;
#elif (UART_PIN_SELECTION == 2 || ((uartCount == 1) && (UART_PIN_SELECTION == 3)))
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
uartCount = 2;
#endif
prvUartHandle->pvUartRecvCallback = __prv_vEcu_CANOverUartMsgCallback;