fix: LaserTimerMinutes持久化存储到Flash
1. AppPara_T新增LaserTimerMinutes字段,上电从Flash加载 2. 首次使用默认10分钟,laser time修改后SAVE_APP_PARA保存 3. 断电重启后保留上次设定值
This commit is contained in:
@@ -785,6 +785,8 @@ static void DebugLaserConfig(int argc, char *argv[])
|
||||
return;
|
||||
}
|
||||
SGCP.LaserTimerMinutes = (uint8_t)min;
|
||||
App.Para.LaserTimerMinutes = (uint8_t)min;
|
||||
SAVE_APP_PARA((uint32_t *)&App.Para);
|
||||
DBG_LOG("Laser timer set to %d minute(s).\r\n", SGCP.LaserTimerMinutes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user