From d715e84d0578eebc57d6393fb8eff70ff58acad1 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 25 七月 2025 17:24:42 +0800 Subject: [PATCH] Merge branch 'MK_IPhone_测试' of http://47.108.70.204:60062/r/ChinaUWBProject into MK_IPhone_测试 --- keil/include/main/main.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index a4f638e..1183646 100644 --- a/keil/include/main/main.c +++ b/keil/include/main/main.c @@ -130,6 +130,8 @@ { // LOG_INFO(TRACE_MODULE_APP, "Wake up by sleep timer %d\r\n", time); } +extern uint8_t start_wait_flag; +extern int16_t end_count1; static void sleep_timer_callback_normal(void *dev, uint32_t time) { if(secondtask_count++%2==0) @@ -138,7 +140,11 @@ }else{ flag_secondtask = 0; } - + if(start_wait_flag)//lora升级等待超时标志 + { + if(end_count1--<=0) + start_wait_flag=0; + } // if(delaysleep_count>0) // delaysleep_count--; } @@ -491,7 +497,7 @@ LOG_INFO(TRACE_MODULE_APP,"固件版本:MK_免布线模式 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff); uart0_Init_normal(); Lora_1268_Init(); -// LOG_INFO(TRACE_MODULE_APP," 切换6\r\n"); + //LOG_INFO(TRACE_MODULE_APP," 切换6\r\n"); SwitchLoraSettings(478,7,22); Uwb_init();//默认为我们测距配置 OpenUWB(); @@ -515,6 +521,7 @@ //Lora_Tx_Poll(); } Lora_Tx_Poll(); + //LoraUp_Poll();//网关升级 if(!gpio_pin_get_val(SLEEP_PIN)) { delay_ms(300); -- Gitblit v1.9.3