Skip to content

Commit b5c02eb

Browse files
committed
Merge branch 'bugfix/fix_classic_bt_build_fail_v5.4' into 'release/v5.4'
fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE (v5.4) See merge request espressif/esp-idf!34931
2 parents 28bf5ea + 0dea1a8 commit b5c02eb

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)