Fix building without BT support

I guess no one had tried this in a while.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-10-26 06:05:27 -07:00
parent 1d10a56bdf
commit 3b0f38f24a
5 changed files with 29 additions and 11 deletions

View file

@ -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);