From 79d0185c62f245d71bf6ea5dc94e3b5ba38c2895 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 30 Sep 2018 17:15:52 -0700 Subject: Bluetooth: use_random_address helper isn't needed on Windows Signed-off-by: Dirk Hohndel --- core/qt-ble.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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) { -- cgit v1.2.3-70-g09d2