aboutsummaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 17:53:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 17:53:53 -0700
commit63a4a755a308be6141202123248abc9ddc131153 (patch)
tree4f7b2a08bc189122435477628e0be214435aea4d /core/btdiscovery.cpp
parentd58de3716718207b9fe53fdd451c9d1e35bff38a (diff)
downloadsubsurface-63a4a755a308be6141202123248abc9ddc131153.tar.gz
Warn when not compiling against the matching libdc version
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 4e22d45f5..c6cb3003a 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -94,13 +94,15 @@ BTDiscovery *BTDiscovery::instance()
}
#if defined(BT_SUPPORT)
-
+#if defined(SSRF_CUSTOM_IO)
extern void addBtUuid(QBluetoothUuid uuid);
+#endif
extern QHash<QString, QStringList> productList;
extern QStringList vendorList;
void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
{
+#if defined(SSRF_CUSTOM_IO)
btPairedDevice this_d;
this_d.address = device.address();
this_d.name = device.name();
@@ -113,6 +115,7 @@ void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
}
btDeviceDiscoveredMain(this_d);
+#endif
}
void BTDiscovery::btDeviceDiscoveredMain(const btPairedDevice &device)