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 #define DEBUG_CMD_CNT 16
const DBGFunType DebugFun[DEBUG_CMD_CNT]; 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]; static char buff[DEBUG_BUFSIZE];
volatile uint16_t iw=0; /* buffer write index*/ volatile uint16_t iw=0; /* buffer write index*/
@@ -781,9 +781,9 @@ static void DebugLaserConfig(int argc, char *argv[])
return; return;
} }
int min = atoi(argv[2]); 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; return;
} }
SGCP.LaserTimerMinutes = (uint8_t)min; SGCP.LaserTimerMinutes = (uint8_t)min;
@@ -821,8 +821,8 @@ void DebugCmdRestoreFactory(int argc, char *argv[])
while(1); while(1);
} }
/***************************************************************************************** /*****************************************************************************************
* 函数名称: DebugCmdReboot * 函数名称: DebugCmdChannel
* 功能描述: 设备重启 * 功能描述: 调试打印通道设置
* 参 数: argc, 输入参数数量 * 参 数: argc, 输入参数数量
argv, 输入参数 argv, 输入参数
* 返 回 值: 无 * 返 回 值: 无