From 20943bd22e3c6be078f586cdb085136f7eea9f7f Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Mon, 9 Dec 2024 13:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E9=80=9A12V=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E4=B8=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/peripheral.c | 2 +- APP/peripheral_main.c | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/APP/peripheral.c b/APP/peripheral.c index d106c08..6772a55 100644 --- a/APP/peripheral.c +++ b/APP/peripheral.c @@ -40,7 +40,7 @@ #define SBP_PHY_UPDATE_DELAY 2400 // What is the advertising interval when device is discoverable (units of 625us, 80=50ms) -#define DEFAULT_ADVERTISING_INTERVAL (160 * 1) +#define DEFAULT_ADVERTISING_INTERVAL (160 * 10) // Limited discoverable mode advertises for 30.72s, and then stops // General discoverable mode advertises indefinitely diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index 2828032..256074f 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -84,22 +84,17 @@ __attribute__((noinline)) void Main_Circulation() EMV_CHARGE_EN; PRINT("EMV_CHARGE_EN\n"); - DelayMs(500); + // DelayMs(500); - EMV_CHARGE_OFF_DEINIT; - PRINT("EMV_CHARGE_OFF_DEINIT 1s\n"); + // EMV_CHARGE_OFF_DEINIT; + // PRINT("EMV_CHARGE_OFF_DEINIT 1s\n"); - // 12V_EN - GPIOB_ResetBits(GPIO_Pin_14); - GPIOB_ModeCfg(GPIO_Pin_14, GPIO_ModeOut_PP_5mA); - PRINT("12V_EN OFF\n"); - - DelayMs(3000); + DelayMs(1000); // EMV_CTRL EMV_ON; PRINT("EMV_ON\n"); - DelayMs(100); + DelayMs(1000); BOOST_OFF_DEINIT; BEEP_OFF_DEINIT;