Skip to content

Commit 0dea1a8

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 <zhanghaipeng@espressif.com>
1 parent af18afd commit 0dea1a8

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
@@ -215,11 +215,16 @@
215215
#define BLE_50_FEATURE_SUPPORT FALSE
216216
#endif
217217

218+
#if (UC_BT_BLE_ENABLED ==TRUE)
218219
#if (UC_BT_BLE_42_FEATURES_SUPPORTED == TRUE || BLE_50_FEATURE_SUPPORT == FALSE)
219220
#define BLE_42_FEATURE_SUPPORT TRUE
220221
#else
221222
#define BLE_42_FEATURE_SUPPORT FALSE
222223
#endif
224+
#else
225+
#define BLE_42_FEATURE_SUPPORT FALSE
226+
#define BLE_50_FEATURE_SUPPORT FALSE
227+
#endif /* UC_BT_BLE_ENABLED */
223228

224229
#if (UC_BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER == TRUE)
225230
#define BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER TRUE

0 commit comments

Comments
 (0)