fix: LaserTimerMinutes持久化存储到Flash

1. AppPara_T新增LaserTimerMinutes字段,上电从Flash加载
2. 首次使用默认10分钟,laser time修改后SAVE_APP_PARA保存
3. 断电重启后保留上次设定值
This commit is contained in:
2026-07-23 09:23:50 +08:00
parent afda00d8f2
commit f0d3f51922
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -259,6 +259,7 @@ typedef struct {
RS485Para_t Rs485Ch1;
RS485Para_t Rs485Ch2;
uint32_t FactoryFlag;//出厂标志位
uint8_t LaserTimerMinutes; //激光定时关闭分钟数
LoraPara_t Lora;
}AppPara_T, *pAppPara;
//#define APP_PARA_ADDRESS (0x0001FC00)