mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Remove libdivecomputer ifdefs for configuring OSTC
The hw_ostc_device_eeprom_read / hw_ostc_device_eeprom_write functions have bin in libdivecomputer since v0.1.0, so there was an error when the read settings part ended up behind ifdef's. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
194d4b4c00
commit
60f09bbd42
1 changed files with 1 additions and 3 deletions
|
@ -112,11 +112,9 @@ 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.
|
||||
|
@ -490,6 +488,7 @@ void ReadSettingsThread::run()
|
|||
emit devicedetails(m_deviceDetails);
|
||||
break;
|
||||
}
|
||||
#endif // divecomputer 0.5.0
|
||||
#ifdef DEBUG_OSTC
|
||||
case DC_FAMILY_NULL:
|
||||
#endif
|
||||
|
@ -796,7 +795,6 @@ void ReadSettingsThread::run()
|
|||
emit devicedetails(m_deviceDetails);
|
||||
break;
|
||||
}
|
||||
#endif // divecomputer 0.5.0
|
||||
default:
|
||||
supported = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue