summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-06-18 15:50:37 +0900
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-06-22 08:43:47 -0700
commitadd253ca9eee79f97de5bfd25a456102f49bef86 (patch)
tree3f2d04b6786fb4e2b57d41bd1adef78bf5c2b5ff /desktop-widgets/downloadfromdivecomputer.cpp
parentfc8068c57446d6db54e8f32215d6aee6f295e28f (diff)
downloadsubsurface-add253ca9eee79f97de5bfd25a456102f49bef86.tar.gz
Convert to new libdivecomputer custom IO model
Instead of being "custom serial", it's a IO model that allows serial or packet modes, independently of each other (ie you can have a bluetooth device that does serial over BT rfcomm and packet-based communication over BLE GATT with the same serial operations that describe both cases). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 0c7213936..4104d70f2 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -87,7 +87,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
ui.downloadCancelRetryButton->setEnabled(true);
ui.downloadCancelRetryButton->setText(tr("Download"));
-#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
+#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_IO)
ui.bluetoothMode->setText(tr("Choose Bluetooth download mode"));
ui.bluetoothMode->setChecked(dc->downloadMode() == DC_TRANSPORT_BLUETOOTH);
btDeviceSelectionDialog = 0;
@@ -293,7 +293,7 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
dc->setProduct(data->product());
dc->setDevice(data->devName());
-#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_SERIAL)
+#if defined(BT_SUPPORT) && defined(SSRF_CUSTOM_IO)
dc->setDownloadMode(ui.bluetoothMode->isChecked() ? DC_TRANSPORT_BLUETOOTH : DC_TRANSPORT_SERIAL);
#endif