mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Only use DC_TRANSPORT_* with SSRF_CUSTOM_SERIAL
This if'defs DC_TRANSPORT_* use with SSRF_CUSTOM_SERIAL, because the enum doesn't exist when building against stock libdivecomputer. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
647645d6e4
commit
7bbd60a4fd
1 changed files with 2 additions and 0 deletions
|
@ -347,7 +347,9 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
|
|||
data.deviceid = data.diveid = 0;
|
||||
set_default_dive_computer(data.vendor, data.product);
|
||||
set_default_dive_computer_device(data.devname);
|
||||
#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
|
||||
set_default_dive_computer_download_mode(ui.bluetoothMode->isChecked() ? DC_TRANSPORT_BLUETOOTH : DC_TRANSPORT_SERIAL);
|
||||
#endif
|
||||
thread = new DownloadThread(this, &data);
|
||||
|
||||
connect(thread, SIGNAL(finished()),
|
||||
|
|
Loading…
Reference in a new issue