[PATCH 1/3] Fix compability with libdivecomputer < 0.5.0
Anton Lundin
glance at acc.umu.se
Tue Oct 21 14:21:14 PDT 2014
hw_ostc_device_fwupdate was introduced after 0.4.2 so ifdef it to
libdivecomputer >= 0.5.0. The scope of users interested in this feature
probably isn't big enough to justify a bump of our dependencies to a
unreleased version of libdivecomputer.
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
configuredivecomputerthreads.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index 7856a15..5f92a63 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -697,11 +697,11 @@ void FirmwareUpdateThread::run()
//supported = true;
//hw_ostc3_device_fwupdate(m_data->device, m_fileName.toUtf8().data());
break;
-#endif // divecomputer 0.5.0
case DC_FAMILY_HW_OSTC:
supported = true;
hw_ostc_device_fwupdate(m_data->device, m_fileName.toUtf8().data());
break;
+#endif // divecomputer 0.5.0
default:
supported = false;
break;
--
1.9.1
More information about the subsurface
mailing list