From 0f4f284fde58058064d884c80186d7ccc0ce4d06 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: Sun, 5 Jan 2025 11:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=97=B6=E9=95=BF=E4=B8=BA=E5=B0=8F=E6=97=B6,=E4=BD=9C?= =?UTF-8?q?=E4=B8=BA=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/main.c b/applications/main.c index 712f5eb..976e9b7 100644 --- a/applications/main.c +++ b/applications/main.c @@ -2,7 +2,7 @@ * @Author: mbw * @Date: 2024-10-23 17:14:16 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2025-01-04 17:13:09 + * @LastEditTime: 2025-01-05 11:38:12 * @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c * @Descrt_thread_ * @@ -127,7 +127,7 @@ int _Self_Check_Mode(void) void Work_Cnt_Timer_Callback(void *parameter) { work_duration++; - if (IS_EndOfLife()) // 每天检测一下是否过期 + if (IS_EndOfLife()) // 每小时检测一下是否过期 { if (Flash_GetNum_Records(kRecordSensoEndOfLife) == 0) { @@ -151,7 +151,7 @@ int main(void) // 定义超时时间,单位为毫秒 #define TIMEOUT_MS 3 * 60 * 1000 // #define TIMEOUT_MS 8 * 1000 -#define WORK_TIMER_CNT (1000 * 60 * 60 * 24) +#define WORK_TIMER_CNT (1000 * 60 * 60) rt_err_t result = RT_EINVAL; rt_uint32_t received_event; @@ -484,7 +484,7 @@ int main(void) { Flash_Write_Record(kRecordSensoEndOfLife); } - BEEP_END_OF_LIFE; + // BEEP_END_OF_LIFE; LED_Y_END_OF_LIFE; } }