summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-30 17:15:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-01 15:55:19 -0700
commit79d0185c62f245d71bf6ea5dc94e3b5ba38c2895 (patch)
treeb73a8d32c00384fba63790f14d2347a8f5f23513
parenta8953da02d1d61038c5c94887acee68a6088cbb1 (diff)
downloadsubsurface-79d0185c62f245d71bf6ea5dc94e3b5ba38c2895.tar.gz
Bluetooth: use_random_address helper isn't needed on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 cab7303cc..7bbe554cc 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -366,6 +366,7 @@ dc_status_t BLEObject::setupHwTerminalIo(QList<QLowEnergyCharacteristic> allC)
return setHwCredit(MAXIMAL_HW_CREDIT);
}
+#if !defined(Q_OS_WIN)
// Bluez is broken, and doesn't have a sane way to query
// whether to use a random address or not. So we have to
// fake it.
@@ -373,6 +374,7 @@ static int use_random_address(dc_user_device_t *user_device)
{
return IS_SHEARWATER(user_device) || IS_GARMIN(user_device);
}
+#endif
dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_device_t *user_device)
{