mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:43:24 +00:00
Bluetooth: don't use random addresses on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1f59629a76
commit
0422cd3662
1 changed files with 2 additions and 0 deletions
|
@ -405,8 +405,10 @@ dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_
|
|||
#endif
|
||||
qDebug() << "qt_ble_open(" << devaddr << ")";
|
||||
|
||||
#if !defined(Q_OS_WIN)
|
||||
if (use_random_address(user_device))
|
||||
controller->setRemoteAddressType(QLowEnergyController::RandomAddress);
|
||||
#endif
|
||||
|
||||
// Try to connect to the device
|
||||
controller->connectToDevice();
|
||||
|
|
Loading…
Add table
Reference in a new issue