File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,6 @@ class PrivacyCentral : public PrivacyDevice {
385
385
386
386
_ble.gap ().setCentralPrivacyConfiguration (&privacy_configuration);
387
387
388
-
389
388
start_scanning ();
390
389
}
391
390
@@ -447,11 +446,11 @@ class PrivacyCentral : public PrivacyDevice {
447
446
if (_bonded) {
448
447
/* if we bonded it means we have found the other device, from now on
449
448
* wait at each step until completion */
450
- _ble.gap ().setScanTimeout ( 0 );
449
+ _ble.gap ().setScanParams ( 4 , 4 , 0 /* timeout */ );
451
450
} else {
452
451
/* otherwise only scan for a limited time before changing roles again
453
452
* if we fail to find the other device */
454
- _ble.gap ().setScanTimeout ( 5 );
453
+ _ble.gap ().setScanParams ( 4 , 4 , 4 /* timeout */ );
455
454
}
456
455
457
456
_is_connecting = false ;
You can’t perform that action at this time.
0 commit comments