解决刚才的一个编译报错问题

This commit is contained in:
小马_666 2025-01-25 15:11:34 +08:00
parent da3123744e
commit 64225d46b5
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
#include "bsp_rtc.h" #include "bsp_rtc.h"
#include "user_sys.h" #include "user_sys.h"
#include "bsp_led.h" #include "bsp_led.h"
#include "at_device_nt26k.h"
#define LOG_TAG "bsp_h308" #define LOG_TAG "bsp_h308"
#define LOG_LVL LOG_LVL_DBG #define LOG_LVL LOG_LVL_DBG
#include <ulog.h> #include <ulog.h>
@ -246,7 +248,7 @@ uint8_t IS_H308_EndOfLife(void)
ntp_flag = 0; ntp_flag = 0;
RTC_GetTime(); RTC_GetTime();
if (RtcDateTime.year >= 2035) &&(work_duration >= 6 * 365) // 至少大于2035年且实际使用时长超过6年 if ((RtcDateTime.year >= 2035) && (work_duration >= 6 * 365)) // 至少大于2035年且实际使用时长超过6年
{ {
if (RTC_GetCounter() >= H308.expiration_seconds) if (RTC_GetCounter() >= H308.expiration_seconds)
{ {