修改了工作时长为小时,作为版本
This commit is contained in:
parent
c0cd2cd015
commit
0f4f284fde
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-10-23 17:14:16
|
* @Date: 2024-10-23 17:14:16
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @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
|
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
|
||||||
* @Descrt_thread_
|
* @Descrt_thread_
|
||||||
*
|
*
|
||||||
|
@ -127,7 +127,7 @@ int _Self_Check_Mode(void)
|
||||||
void Work_Cnt_Timer_Callback(void *parameter)
|
void Work_Cnt_Timer_Callback(void *parameter)
|
||||||
{
|
{
|
||||||
work_duration++;
|
work_duration++;
|
||||||
if (IS_EndOfLife()) // 每天检测一下是否过期
|
if (IS_EndOfLife()) // 每小时检测一下是否过期
|
||||||
{
|
{
|
||||||
if (Flash_GetNum_Records(kRecordSensoEndOfLife) == 0)
|
if (Flash_GetNum_Records(kRecordSensoEndOfLife) == 0)
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ int main(void)
|
||||||
// 定义超时时间,单位为毫秒
|
// 定义超时时间,单位为毫秒
|
||||||
#define TIMEOUT_MS 3 * 60 * 1000
|
#define TIMEOUT_MS 3 * 60 * 1000
|
||||||
// #define TIMEOUT_MS 8 * 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_err_t result = RT_EINVAL;
|
||||||
rt_uint32_t received_event;
|
rt_uint32_t received_event;
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ int main(void)
|
||||||
{
|
{
|
||||||
Flash_Write_Record(kRecordSensoEndOfLife);
|
Flash_Write_Record(kRecordSensoEndOfLife);
|
||||||
}
|
}
|
||||||
BEEP_END_OF_LIFE;
|
// BEEP_END_OF_LIFE;
|
||||||
LED_Y_END_OF_LIFE;
|
LED_Y_END_OF_LIFE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue