summaryrefslogtreecommitdiffstats
path: root/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-10-21 23:21:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-21 14:41:28 -0700
commit581288fb469f0c930293330f4797d2c15e93362c (patch)
tree68b7edf82db8b66f027aff47a5655a3e28c7cffb /configuredivecomputerthreads.cpp
parentf81d316570fdd06be8db2ad36c2fb21c51c2592a (diff)
downloadsubsurface-581288fb469f0c930293330f4797d2c15e93362c.tar.gz
Fix compability with libdivecomputer < 0.5.0
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@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r--configuredivecomputerthreads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index 7856a150f..5f92a63f1 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;