From 59dc136533bb8d768953a2b2799cae6cf8d02982 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期四, 31 十月 2024 18:12:56 +0800
Subject: [PATCH] 增加小于3.3V供电不足,停止震动,GPS和4G功能,增加自动检测供电足够后开启4G,GPS,震动功能,增加静止休眠逻辑。g_com_map表中4G发送频率上位机未改,供电不足下单片机不进入低功耗bug未解决,

---
 keil/include/drivers/mk_rtc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/keil/include/drivers/mk_rtc.c b/keil/include/drivers/mk_rtc.c
index c34929f..d1e2829 100644
--- a/keil/include/drivers/mk_rtc.c
+++ b/keil/include/drivers/mk_rtc.c
@@ -187,7 +187,7 @@
     }
 
     if (time->year < 1970 || time->month < 1 || time->month > 12 || time->day < 1 || time->day > rtc_month_days(time->month, time->year) || time->hour >= 24 ||
-        time->minute >= 60 || time->second >= 60)
+            time->minute >= 60 || time->second >= 60)
     {
         return DRV_ERROR;
     }

--
Gitblit v1.9.3