From 53fc262beaacb6922d65e3e2001f28d90bd884a8 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期一, 24 三月 2025 17:28:57 +0800 Subject: [PATCH] V1.12,增加不休眠下5S单独一包上传逻辑 --- keil/include/main/main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index 5ea4402..09a6c22 100644 --- a/keil/include/main/main.c +++ b/keil/include/main/main.c @@ -389,7 +389,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)|11; + g_com_map[VERSION] = (1<<8)|12; 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); @@ -556,7 +556,8 @@ board_4GUsart_detection_init(_4gUsart_handler); while (1) - { test4=gpio_pin_get_val(SCL_PIN); + { + test4=gpio_pin_get_val(SCL_PIN); wdt_ping(WDT_ID0);//喂狗 if(!power_low_flag)//确认是否休眠下才开启功能 { -- Gitblit v1.9.3