From 38ee5f2e88aeba329f35bae9cc0d455e4892a9d1 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期二, 05 九月 2023 15:17:00 +0800
Subject: [PATCH] 版本v1.0,修改灯的顺序,修改gps与灯冲突bug

---
 APL/APL.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/APL/APL.c b/APL/APL.c
index 6401af6..4279986 100644
--- a/APL/APL.c
+++ b/APL/APL.c
@@ -372,6 +372,12 @@
                 Power_GPS_LoraOn();
                 l_eGPSState = GPS_ON;
                 GPSDateTime=lp_time;
+                if(IsTypecCActive() == HIDO_FALSE)//如果有5v输入的话不关灯。
+                {
+                powerled=LEDOFF;
+                Set4LEDColor(powerled,loraled,gpsled,uwbled);  //关一下电源灯,防止gps突然工作不进入休眠,电源灯常量
+                }
+                
             }
 
             break;

--
Gitblit v1.9.3