configuredivecomputerthreads.cpp: conditionally define read_ostc_cf()

Fixes a warning. The function is only used if
DC_VERSION_CHECK(0, 5, 0) is defined.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2014-11-27 21:55:25 +02:00 committed by Dirk Hohndel
parent 21bfe88a30
commit de49957a52

View file

@ -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.