fix(vd960DBN): 启动诊断打印 + snap_flush 无条件挂载
现场: 懒擦后仍起不来 (200ms 乱码后死机), 需定位复位/卡死点 - main 开头打印 RST_REASON (RCC_RSTSCKR): 一锤定音区分 IWDG死锁(bit31) / POR掉电(bit25) / NRST外部复位(bit26) / 软复位(bit24) - 各 init 步骤加标记 (storage/offlog/snap ok), 定位卡死位置 - snap_flush 从 iot_enable 分支移到 Main_Circulation 无条件调用: 原实现 TCP 模式(iot_enable=0)下快照永不落盘, RAM 暂存满丢新
This commit is contained in:
@@ -776,10 +776,6 @@ void iot_mqtt_publish_sensor(void) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 快照落盘: 主循环上下文 (Step1 直读帧 + 回调帧都已在 ingest 入队);
|
||||
放在 READY/enable 检查之前 → 断网/未使能期间照常落 (脱机取证语义) */
|
||||
snap_flush();
|
||||
|
||||
/*--- 事件上报状态机: 发送/重发/重连补报 ---*/
|
||||
iot_evt_process();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user