From 6f6cd98dfe6360e6457de0b96493c9226625948d Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Tue, 30 Jun 2026 16:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8F=E5=AE=9A=E4=B9=89=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E8=B0=83=E8=AF=95=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/RBcore/drv_interface.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/project/RBcore/drv_interface.c b/project/RBcore/drv_interface.c index 6c4843f..c187faa 100644 --- a/project/RBcore/drv_interface.c +++ b/project/RBcore/drv_interface.c @@ -140,8 +140,11 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) } else if (huart->Instance == USART3) { - //UART_RX_IRQHandler(g_ptRS485_2); - UART_RX_IRQHandler(g_ptUartCtrl); +#ifdef USE_PRINT + UART_RX_IRQHandler(g_ptUartCtrl); +#else + UART_RX_IRQHandler(g_ptRS485_2); +#endif } else if (huart->Instance == UART4) { @@ -229,8 +232,11 @@ void SendAll_Task(void *argument) { rd_ComSendProc(g_ptRS485_1); Rd_Delay(1); - //rd_ComSendProc(g_ptRS485_2); +#ifdef USE_PRINT rd_ComSendProc(g_ptUartCtrl); +#else + rd_ComSendProc(g_ptRS485_2); +#endif Rd_Delay(1); rd_ComSendProc(g_ptRS485_3); Rd_Delay(1);