fix: 有限存在超时改为可配置 hold_time 替代固定 HOLD_TIME

- Loop154_Unit 新增 hold_time 字段 (tick 数)
- storage.c para_store_init 从 exist_mode 计算: hold_time = exist_mode * 20 * 5
- TMR15_GLOBAL_IRQHandler 中使用 unit->hold_time 替代固定 HOLD_TIME
This commit is contained in:
wangfq
2026-06-26 10:20:13 +08:00
parent 58774a2038
commit bfbceec761
3 changed files with 3 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ typedef struct {
/*--- 计数器 ---*/
uint16_t Hold_CNT;
uint16_t hold_time; // 有限存在时长 (tick 数)
uint8_t INCNT, OUTCNT;
/*--- 输出配置 ---*/