chore(vd960DBN): 结案清理 — 移除临时诊断代码 (2026-08-17)
频繁复位问题闭环后清理: - peripheral.c performPeriodicTask: 删 _dbg_cnt 500ms 调试心跳打印 (BLE 状态已由上层链路验证) - peripheral_main.c: 删 g_boot_count(.noinit) + BOOT_CNT/END/SP 诊断打印块 - 保留 fault_diag 基础设施 + RST_REASON 一行 (诊断价值, 未来复用) - 注意: peripheral.c 为 GBK+CRLF, 新注释用 ASCII
This commit is contained in:
@@ -684,15 +684,7 @@ static void peripheralStateNotificationCB(gapRole_States_t newState, gapRoleEven
|
||||
*/
|
||||
static void performPeriodicTask(void)
|
||||
{
|
||||
static uint32_t _dbg_cnt = 0;
|
||||
if(++_dbg_cnt >= 10) /* 500ms heartbeat: confirm TMOS periodic alive */
|
||||
{
|
||||
_dbg_cnt = 0;
|
||||
PRINT("BLE tick: ntf_len=%d ntf_flag=%d resp=%d amt=%d seq=%d off=%d\n",
|
||||
g_notify_buftemp.len, g_notify_buftemp.flag,
|
||||
g_buf_ble_response.flag, g_buf_ble_response.pkg_amount,
|
||||
g_buf_ble_response.pkg_seq, g_buf_ble_response.dat_offset);
|
||||
}
|
||||
/* 2026-08-17 cleanup: removed _dbg_cnt 500ms debug heartbeat print */
|
||||
if(g_flag_notify_temp){
|
||||
g_flag_notify_temp = 0;
|
||||
PRINT("BLE send: len=%d resp=%d amt=%d seq=%d off=%d\n",
|
||||
|
||||
Reference in New Issue
Block a user