From ef6fc52c5b347e3eebc2427700ee7af37597f89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Fri, 13 Jun 2025 11:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_button.c | 29 ----------------------------- bsp/src/bsp_flash.c | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/bsp/src/bsp_button.c b/bsp/src/bsp_button.c index a92c697..d1e86f6 100644 --- a/bsp/src/bsp_button.c +++ b/bsp/src/bsp_button.c @@ -51,8 +51,6 @@ static uint8_t _CommonBtnRead (void *arg) static void _CommonBtnEvtCb (void *arg) { - // static rt_uint8_t button_cnt = 0; - if (flex_button_event_read (&user_button[USER_BUTTON_1]) == FLEX_BTN_PRESS_CLICK) { if(SysControl.status != kCalibrationEvent) @@ -66,33 +64,6 @@ static void _CommonBtnEvtCb (void *arg) { Send_Laser_Alarm_Event(KMuteEvent); } - - // if (button_cnt == 1) - // { - // LED_OFF (y); - // LED_OFF (r); - // LED_ON (g); - // LOG_D ("GREEN ON"); - // } - // else if (button_cnt == 2) - // { - // LED_OFF (g); - // LED_OFF (r); - // LED_ON (y); - // LOG_D ("Yellow ON"); - // } - // else if (button_cnt == 3) - // { - // LED_OFF (g); - // LED_OFF (y); - // LED_ON (r); - // LOG_D ("RED ON"); - // } - // else if (button_cnt >= 4) - // { - // button_cnt = 0; - // } - // button_cnt++; } else if ((flex_button_event_read(&user_button[USER_BUTTON_1]) == FLEX_BTN_PRESS_LONG_HOLD) &&(flex_button_event_read(&user_button[USER_BUTTON_0]) == FLEX_BTN_PRESS_DOUBLE_CLICK)) diff --git a/bsp/src/bsp_flash.c b/bsp/src/bsp_flash.c index 51f93ea..d4db074 100644 --- a/bsp/src/bsp_flash.c +++ b/bsp/src/bsp_flash.c @@ -904,7 +904,7 @@ int BSP_Flash_Init (void) Flash_SetProductTimeLimit (2025, 6, 11, 11, 50, 20, kFactoryTimeId); Set_ExpirationTime (MAX_EXPIRATION_DAYS); - Flash_Set_Calibration_State(kSysGasCalibStatus); // 标定状态 + Flash_Set_Calibration_State(kNotCalibrated); // 标定状态 Flash_Set_Valve_Num(0); sci.hw_ver = SYS_HW_VERSION; sci.sw_ver = SYS_SW_VERSION;