feat(DLD110S): 0x24偏移7上报direction_mode完整字节(与DLD154Pro语义对齐) + 修双分号 + 协议文档同步

This commit is contained in:
wangfq
2026-08-26 18:02:51 +08:00
parent 60d3543858
commit cb94429ee9
3 changed files with 17 additions and 3 deletions
+14
View File
@@ -2,6 +2,20 @@
> MCU: CH591R (RISC-V, BLE) @60MHz | 通道: 1 路线圈 | 调试口: UART0 (DEBUG 编译, 230400)
## 2026-08-26 — 0x24 偏移 7 语义对齐 DLD154Prodirection_mode 完整字节)
### 改动
王工调整 `dbn_ble_srv.c` 一行:0x24 响应偏移 7 从 `g_function_mode`= direction_mode>>4)改为 `g_loop_cng_unit.direction_mode` **完整字节**,与 DLD154Pro 语义对齐。顺手修掉双分号 `direction_mode;;`
### 影响
- **协议语义变化**:小程序读偏移 7 从"功能模式高 4 位"变为"完整方向/触发模式字节"——**解析逻辑必须按新语义**(低 4 位 = 方向/触发模式,高 4 位 = g_function_mode
- 协议文档同步:§5.4 表格 + 坑清单第 9 条(原"与 DLD154Pro 不同"已改为"语义对齐"
- 0x23 写路径不受影响(unpack_pkg_set_cjq_param 仍存完整 direction_mode 字节)
---
## 2026-08-26 — V4.31:断开次数双变量拆分(LED 3次上限 vs BLE 持续累计)
### 背景