From 71366fe1a7f1ab49573ba77d90809e5791932584 Mon Sep 17 00:00:00 2001 From: wangfq Date: Fri, 24 Jul 2026 13:35:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(opt):=20=E5=85=89=E8=80=A6=E5=A4=8D?= =?UTF-8?q?=E4=BD=8D=E6=94=B9=E4=B8=BA=20SYS=5FResetExecute()=20=E8=8A=AF?= =?UTF-8?q?=E7=89=87=E5=85=A8=E5=A4=8D=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit INIT_VD() 仅复位检测状态,SYS_ResetExecute() 全芯片复位 包括 MCU 外设、BLE 协议栈、RS485 全部重新初始化 --- BLE/DLD154Pro_Peripheral_28K/APP/peripheral_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BLE/DLD154Pro_Peripheral_28K/APP/peripheral_main.c b/BLE/DLD154Pro_Peripheral_28K/APP/peripheral_main.c index c1607e3..617190b 100644 --- a/BLE/DLD154Pro_Peripheral_28K/APP/peripheral_main.c +++ b/BLE/DLD154Pro_Peripheral_28K/APP/peripheral_main.c @@ -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;