mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
1d10a56bdf
commit
3b0f38f24a
5 changed files with 29 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue