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, 输入参数 * 返 回 值: 无