diff --git a/bsp/src/bsp_h308.c b/bsp/src/bsp_h308.c index f0b1140..9075175 100644 --- a/bsp/src/bsp_h308.c +++ b/bsp/src/bsp_h308.c @@ -18,6 +18,8 @@ #include "bsp_rtc.h" #include "user_sys.h" #include "bsp_led.h" +#include "at_device_nt26k.h" + #define LOG_TAG "bsp_h308" #define LOG_LVL LOG_LVL_DBG #include @@ -246,7 +248,7 @@ uint8_t IS_H308_EndOfLife(void) ntp_flag = 0; 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) {