summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
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 /libdivecomputer.c
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 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index b5f90cb35..ca8378379 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -971,7 +971,9 @@ const char *do_libdivecomputer_import(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);