From 64225d46b5d6e1bd17f1a7593fd451f2f2c9f44e 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: Sat, 25 Jan 2025 15:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=88=9A=E6=89=8D=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_h308.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {