From 4225a893c6c67cbed43e1aae264a3f79c010c998 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期二, 14 一月 2025 10:32:50 +0800 Subject: [PATCH] 3.2,修改灯亮的逻辑。 --- Core/Src/main.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index c304749..ab1daae 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -975,6 +975,8 @@ uint16_t work_time; uint8_t input5vtime=10; uint32_t main_time; +uint8_t ledonflag; +uint32_t ledontime; void HAL_LPTIM_CompareMatchCallback(LPTIM_HandleTypeDef *hlptim) { SystemClock_Config(); @@ -993,6 +995,8 @@ }else{ powerled = RED; } + ledonflag=1; + ledontime=HIDO_TimerGetTick(); Set4LEDColor(uwbled,gpsled,loraled,powerled); } -- Gitblit v1.9.3