From ae079c1fc5d990ba55714d4b3a51b19f96edaec4 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 24 四月 2025 16:01:43 +0800
Subject: [PATCH] 改为中断来低电平触发发送当前扫描数据,3s内扫描不到的会退出,串口来55 AA 75 70 64 61 74 65,进入升级模式

---
 01_SDK/nimble/host/nimble/nimble/host/store/config/src/ble_store_config_conf.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/01_SDK/nimble/host/nimble/nimble/host/store/config/src/ble_store_config_conf.c b/01_SDK/nimble/host/nimble/nimble/host/store/config/src/ble_store_config_conf.c
index 8f17504..54f34d0 100644
--- a/01_SDK/nimble/host/nimble/nimble/host/store/config/src/ble_store_config_conf.c
+++ b/01_SDK/nimble/host/nimble/nimble/host/store/config/src/ble_store_config_conf.c
@@ -26,14 +26,11 @@
 
 #include "sysinit/sysinit.h"
 #include "host/ble_hs.h"
-#include "mtb_kvstore.h"
 #include "base64/base64.h"
 #include "store/config/ble_store_config.h"
 #include "ble_store_config_priv.h"
 
-#include "mtb_kvstore.h"
-
-#define STORE_CONFIG_DBG    1
+#define STORE_CONFIG_DBG    0
 
 //static int
 //ble_store_config_conf_set(int argc, char **argv, char *val);
@@ -210,7 +207,9 @@
         char cccd[BLE_STORE_CONFIG_CCCD_SET_ENCODE_SZ];
     } buf;
 
+#if STORE_CONFIG_DBG
 	printf("save sec size %d\n",BLE_STORE_CONFIG_SEC_SET_ENCODE_SZ);
+#endif
 	
 	for(i = 0; i < ble_store_config_num_our_secs; i++) {
 		ble_store_config_serialize_arr(ble_store_config_our_secs + i,
@@ -297,7 +296,9 @@
 		}
 	}
 	
+#if STORE_CONFIG_DBG
 	printf("ble_save_our_secs:%d\n",ble_store_config_num_our_secs);
+#endif
 	rc = app_kv_write("ble_hs/num_our", (const uint8_t*)&ble_store_config_num_our_secs, 4);
 
     return 0;

--
Gitblit v1.9.3