fix: 修复灵敏度无法修改 + 调整有限存在时间 + 版本号更新

- dbn_ble_srv.c: unpack_pkg_set_cjq_param() 中同步更新 g_freq_sens,
  修复 BLE 小程序修改灵敏度无效的 bug
- dbn_ble_srv.c: g_hold_time 公式对齐 para_store_init (20*5)
- peripheral_main.c: g_freq_sens 从 INIT_VD 写死值移到
  para_store_init() 从存储读取
- cmcng.h: 固件 v3.00, 硬件 v3.01
This commit is contained in:
wangfq
2026-07-21 16:19:40 +08:00
parent c1570da162
commit 7683627639
3 changed files with 9 additions and 9 deletions
@@ -430,7 +430,8 @@ static void unpack_pkg_set_cjq_param(uint8_t *pkg, uint8_t len)
g_function_mode = (g_loop_cng_unit.direction_mode >> 4) & 0x0F;
g_hold_time = g_loop_cng_unit.exist_mode * 30 * 20;
g_hold_time = g_loop_cng_unit.exist_mode * 20 * 5;
g_freq_sens = (g_loop_cng_unit.sensitvity > 0) ? (g_loop_cng_unit.sensitvity - 1) : 0;
i = 0;
tmp[i++] = g_loop_cng_unit.sensitvity;