From 5b22090187a41518cd4d72253f2fef4c61a0ce9b Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 27 八月 2025 14:04:12 +0800
Subject: [PATCH] 1.8,修改蜂鸣器bug

---
 keil/include/main/main.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/keil/include/main/main.c b/keil/include/main/main.c
index e563bb9..b813625 100644
--- a/keil/include/main/main.c
+++ b/keil/include/main/main.c
@@ -346,6 +346,7 @@
 extern uint8_t update_tag_time;
 uint8_t sleep_limit_time=10;
 uint8_t enable_sleep_count,sleep_flag;
+extern  float motor_keeptime;
 static void sleep_timer_callback(void *dev, uint32_t time)
 {
  
@@ -356,7 +357,10 @@
     enable_sleep_count=0;
     sleep_flag=1;
     }
-    
+    if(motor_keeptime>0)
+    {
+    motor_keeptime--;
+    }
     
     g_start_send_flag=1;
 //    if(delaysleep_count>0)
@@ -422,7 +426,7 @@
     ip2 = (g_com_map[TCP_IP_2]>>12&0xf)*1000+(g_com_map[TCP_IP_2]>>8&0xf)*100+(g_com_map[TCP_IP_2]>>4&0xf)*10+(g_com_map[TCP_IP_2]&0xf);
     ip3 = (g_com_map[TCP_IP_3]>>12&0xf)*1000+(g_com_map[TCP_IP_3]>>8&0xf)*100+(g_com_map[TCP_IP_3]>>4&0xf)*10+(g_com_map[TCP_IP_3]&0xf);
     port = g_com_map[TCP_PORT];
-    g_com_map[VERSION] = (1<<8)|7;
+    g_com_map[VERSION] = (1<<8)|8;
     LOG_INFO(TRACE_MODULE_APP,"设备ID: %x .\r\n",dev_id);
     LOG_INFO(TRACE_MODULE_APP,"固件版本:4G-GPS定位手环 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff);
     LOG_INFO(TRACE_MODULE_APP,"服务器地址: %d.%d.%d.%d:%d.\r\n",ip0,ip1,ip2,ip3,port);

--
Gitblit v1.9.3