summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-30 07:50:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-30 08:09:37 -0700
commit0422cd3662e8e890887f38c2a7e718195ebcb601 (patch)
treeeac8c0048694f20898ab7098c672a35bb140ecd4 /core/qt-ble.cpp
parent1f59629a76b0acb9cf6a504e7532839b33335f47 (diff)
downloadsubsurface-0422cd3662e8e890887f38c2a7e718195ebcb601.tar.gz
Bluetooth: don't use random addresses on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index ece3bc6cf..cab7303cc 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -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();