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;