File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -304,8 +304,6 @@ class SMDevicePeripheral : public SMDevice {
304
304
* can proceed. Setting it to false will automatically accept
305
305
* pairing. */
306
306
_ble.securityManager ().setPairingRequestAuthorisation (true );
307
-
308
- _ble.securityManager ().setHintFutureRoleReversal (true );
309
307
};
310
308
311
309
/* * This is called by Gap to notify the application we connected,
@@ -364,6 +362,9 @@ class SMDeviceCentral : public SMDevice {
364
362
printf (" Error during Gap::startScan %d\r\n " , error);
365
363
return ;
366
364
}
365
+
366
+ /* send our keys since we will be a peripheral next */
367
+ _ble.securityManager ().setHintFutureRoleReversal (true );
367
368
}
368
369
369
370
/* * Look at scan payload to find a peer device and connect to it */
You can’t perform that action at this time.
0 commit comments