Bluetooth: don't use random addresses on Windows

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-30 07:50:03 -07:00
parent 1f59629a76
commit 0422cd3662

View file

@ -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();