fix(opt): 光耦复位改为 SYS_ResetExecute() 芯片全复位
INIT_VD() 仅复位检测状态,SYS_ResetExecute() 全芯片复位 包括 MCU 外设、BLE 协议栈、RS485 全部重新初始化
This commit is contained in:
@@ -870,9 +870,7 @@ static void opt_input_poll(void)
|
||||
_opt_low_since = mstick();
|
||||
} else if (!_opt_fired && (mstick() - _opt_low_since >= 500)) {
|
||||
_opt_fired = 1;
|
||||
INIT_VD();
|
||||
rs485_reset_heartbeat();
|
||||
PRINT("OPT: reset triggered\n");
|
||||
SYS_ResetExecute(); // 芯片全复位
|
||||
}
|
||||
} else {
|
||||
_opt_low_since = 0;
|
||||
|
||||
Reference in New Issue
Block a user