解决刚才的一个编译报错问题
This commit is contained in:
parent
da3123744e
commit
64225d46b5
|
@ -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 <ulog.h>
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue