feat: 默认调试输出通道改为RS485_1(ch1)

This commit is contained in:
2026-07-23 09:50:37 +08:00
parent 0df22b4186
commit 6fee6323ea
+5 -5
View File
@@ -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, 输入参数
* 返 回 值: 无