]> granicus.if.org Git - esp-idf/commitdiff
component/bt: Cut down RAM cost: reduce SDP data record number
authorwangmengyang <wangmengyang@espressif.com>
Thu, 17 Nov 2016 06:01:38 +0000 (14:01 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Thu, 17 Nov 2016 06:01:38 +0000 (14:01 +0800)
components/bt/bluedroid/bta/sdp/bta_sdp_cfg.c
components/bt/bluedroid/include/bt_target.h

index eef2511a53174fd5ac0cdfdf737d22b920110132..038183c6dbf0c981aaf7fc265ae0c3c5554c623f 100755 (executable)
@@ -25,7 +25,7 @@
 #include "bta_sdp_api.h"
 
 #ifndef BTA_SDP_DB_SIZE
-#define BTA_SDP_DB_SIZE  4500
+#define BTA_SDP_DB_SIZE  1500
 #endif
 
 static UINT8 __attribute__ ((aligned(4))) bta_sdp_db_data[BTA_SDP_DB_SIZE];
index ee70d0661dced4f612e40ce885df477deebb8253..d09b0f6dc6406cde6e8ab66c33bb62eb72afa265 100755 (executable)
 
 /* The maximum number of SDP records the server can support. */
 #ifndef SDP_MAX_RECORDS
-#define SDP_MAX_RECORDS             15  /*max is 30*/
+#define SDP_MAX_RECORDS             4  /*max is 30*/
 #endif
 
 /* The maximum number of attributes in each record. */