diff options
-rw-r--r-- | configuredivecomputerthreads.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index 6d6e08990..e26935d6f 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -112,9 +112,11 @@ ReadSettingsThread::ReadSettingsThread(QObject *parent, device_data_t *data) } +#if DC_VERSION_CHECK(0, 5, 0) static int read_ostc_cf(unsigned char data[], unsigned char cf) { return data[128 + (cf % 32) * 4 + 3] << 8 ^ data[128 + (cf % 32) * 4 + 2]; } +#endif static void write_ostc_cf(unsigned char data[], unsigned char cf, unsigned char max_CF, unsigned int value) { // Only write settings supported by this firmware. |