1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

nimble/autoconn: fix scanning

This commit is contained in:
Hauke Petersen 2021-12-03 16:06:58 +01:00
parent 2f70f17962
commit ca98df258c

View File

@ -300,7 +300,9 @@ int nimble_autoconn_update(const nimble_autoconn_params_t *params,
nimble_scanner_cfg_t scan_params;
scan_params.itvl_ms = params->scan_itvl;
scan_params.win_ms = params->scan_win;
scan_params.flags = NIMBLE_SCANNER_FILTER_DUPS;
scan_params.flags = NIMBLE_SCANNER_PASSIVE
| NIMBLE_SCANNER_FILTER_DUPS
| NIMBLE_SCANNER_PHY_1M;
/* set the advertising parameters used */
_adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;