Skip to content

Commit e3f0e10

Browse files
committed
fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE
(cherry picked from commit 59d20e8) Co-authored-by: zhanghaipeng <[email protected]>
1 parent 94250f0 commit e3f0e10

File tree

1 file changed

+5
-0
lines changed
  • components/bt/host/bluedroid/common/include/common

1 file changed

+5
-0
lines changed

components/bt/host/bluedroid/common/include/common/bt_target.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,16 @@
187187
#define BLE_50_FEATURE_SUPPORT FALSE
188188
#endif
189189

190+
#if (UC_BT_BLE_ENABLED ==TRUE)
190191
#if (UC_BT_BLE_42_FEATURES_SUPPORTED == TRUE || BLE_50_FEATURE_SUPPORT == FALSE)
191192
#define BLE_42_FEATURE_SUPPORT TRUE
192193
#else
193194
#define BLE_42_FEATURE_SUPPORT FALSE
194195
#endif
196+
#else
197+
#define BLE_42_FEATURE_SUPPORT FALSE
198+
#define BLE_50_FEATURE_SUPPORT FALSE
199+
#endif /* UC_BT_BLE_ENABLED */
195200

196201
#if (UC_BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE)
197202
#define BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER TRUE

0 commit comments

Comments
 (0)