[PATCH 1/3] Workaround abuse of the now missing DC_TRANSPORT_BLUETOOTH

Anton Lundin glance at acc.umu.se
Sun Sep 18 05:50:40 PDT 2016


The DC_TRANSPORT_BLUETOOTH is quite abused here, and I removed it in our
custom serial code. This works around the issue so subsurface still
compiles.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 desktop-widgets/downloadfromdivecomputer.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index d585896..4570a3b 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -37,6 +37,9 @@ namespace DownloadFromDcGlobal {
 
 struct dive_table downloadTable;
 
+// Workaround abuse of old libdc types
+#define DC_TRANSPORT_BLUETOOTH 1024
+
 DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f),
 	thread(0),
 	downloading(false),
-- 
2.7.4



More information about the subsurface mailing list