summaryrefslogtreecommitdiffstats
path: root/configuredivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-26 06:05:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-26 06:51:47 -0700
commit3b0f38f24a3c3d7ccadf8c0b0011dfc58c2f9d46 (patch)
treeef71eedd9499b3441da39ff5d0516c76f76bb7f4 /configuredivecomputer.cpp
parent1d10a56bdf6823e8935729aef60b659dea550a6a (diff)
downloadsubsurface-3b0f38f24a3c3d7ccadf8c0b0011dfc58c2f9d46.tar.gz
Fix building without BT support
I guess no one had tried this in a while. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputer.cpp')
-rw-r--r--configuredivecomputer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp
index 1262492de..2457ffe82 100644
--- a/configuredivecomputer.cpp
+++ b/configuredivecomputer.cpp
@@ -636,7 +636,9 @@ QString ConfigureDiveComputer::dc_open(device_data_t *data)
dc_serial_t *serial_device = NULL;
if (data->bluetooth_mode) {
+#ifdef BT_SUPPORT
rc = dc_serial_qt_open(&serial_device, data->context, data->devname);
+#endif
#ifdef SERIAL_FTDI
} else if (!strcmp(data->devname, "ftdi")) {
rc = dc_serial_ftdi_open(&serial_device, data->context);