From 6fee6323ea25cca460894d36aa6a8fa41e60fb4a Mon Sep 17 00:00:00 2001 From: YuanHongbin <975559679@qq.com> Date: Thu, 23 Jul 2026 09:50:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=BB=98=E8=AE=A4=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=80=9A=E9=81=93=E6=94=B9=E4=B8=BARS485=5F1?= =?UTF-8?q?(ch1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Module/LaserTracing_Debug/UartDebug.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Module/LaserTracing_Debug/UartDebug.c b/Module/LaserTracing_Debug/UartDebug.c index c7cfa99..7c30199 100644 --- a/Module/LaserTracing_Debug/UartDebug.c +++ b/Module/LaserTracing_Debug/UartDebug.c @@ -15,7 +15,7 @@ #define DEBUG_CMD_CNT 16 const DBGFunType DebugFun[DEBUG_CMD_CNT]; -volatile DebugChannel_e gDebugChannel = DBG_CH_UART0; +volatile DebugChannel_e gDebugChannel = DBG_CH_RS485_1; static char buff[DEBUG_BUFSIZE]; volatile uint16_t iw=0; /* buffer write index*/ @@ -781,9 +781,9 @@ static void DebugLaserConfig(int argc, char *argv[]) return; } int min = atoi(argv[2]); - if(min < 0 || min > 255) + if(min < 0 || min > 240) { - DBG_LOG("Invalid minutes! Range: 0~255.\r\n"); + DBG_LOG("Invalid minutes! Range: 0~240.\r\n"); return; } SGCP.LaserTimerMinutes = (uint8_t)min; @@ -821,8 +821,8 @@ void DebugCmdRestoreFactory(int argc, char *argv[]) while(1); } /***************************************************************************************** -* 函数名称: DebugCmdReboot -* 功能描述: 设备重启 +* 函数名称: DebugCmdChannel +* 功能描述: 调试打印通道设置 * 参 数: argc, 输入参数数量 argv, 输入参数 * 返 回 值: 无