fix(opt): 光耦复位改为 SYS_ResetExecute() 芯片全复位

INIT_VD() 仅复位检测状态,SYS_ResetExecute() 全芯片复位
包括 MCU 外设、BLE 协议栈、RS485 全部重新初始化
This commit is contained in:
wangfq
2026-07-24 13:35:02 +08:00
parent b98c931baa
commit 71366fe1a7
@@ -870,9 +870,7 @@ static void opt_input_poll(void)
_opt_low_since = mstick(); _opt_low_since = mstick();
} else if (!_opt_fired && (mstick() - _opt_low_since >= 500)) { } else if (!_opt_fired && (mstick() - _opt_low_since >= 500)) {
_opt_fired = 1; _opt_fired = 1;
INIT_VD(); SYS_ResetExecute(); // 芯片全复位
rs485_reset_heartbeat();
PRINT("OPT: reset triggered\n");
} }
} else { } else {
_opt_low_since = 0; _opt_low_since = 0;