mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2025-07-30 18:37:13 +02:00
Fix build with idf versions < 5.x
This commit is contained in:
@ -917,7 +917,9 @@ bool NimBLEDevice::init(const std::string& deviceName) {
|
||||
# if CONFIG_BTDM_BLE_SCAN_DUPL
|
||||
bt_cfg.normal_adv_size = m_scanDuplicateSize;
|
||||
bt_cfg.scan_duplicate_type = m_scanFilterMode;
|
||||
# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
|
||||
bt_cfg.dup_list_refresh_period = m_scanDuplicateResetTime;
|
||||
# endif
|
||||
# elif CONFIG_BT_LE_SCAN_DUPL
|
||||
bt_cfg.ble_ll_rsp_dup_list_count = m_scanDuplicateSize;
|
||||
bt_cfg.ble_ll_adv_dup_list_count = m_scanDuplicateSize;
|
||||
|
Reference in New Issue
Block a user