mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
21bfe88a30
commit
de49957a52
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue