From 4508a3cea41c750b74e796458307d868a0fc3d8c Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 26 Jan 2015 20:01:01 +0100 Subject: ifdef hw_ostc3_device_config_{read,write} usage hw_ostc3_device_config_{read,write} came into existence in libdivecomputer 0.5.0 series, and by accident lost there ifdef's when they moved out to separate functions. This returns those ifdefs. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputerthreads.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configuredivecomputerthreads.cpp') diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index f1434f660..418a7930e 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -378,6 +378,7 @@ static dc_status_t write_suunto_vyper_settings(dc_device_t *device, DeviceDetail #undef EMIT_PROGRESS +#if DC_VERSION_CHECK(0, 5, 0) static dc_status_t read_ostc3_settings(dc_device_t *device, DeviceDetails *m_deviceDetails) { dc_status_t rc; @@ -820,6 +821,7 @@ static dc_status_t write_ostc3_settings(dc_device_t *device, DeviceDetails *m_de return rc; } +#endif /* DC_VERSION_CHECK(0, 5, 0) */ static dc_status_t read_ostc_settings(dc_device_t *device, DeviceDetails *m_deviceDetails) { -- cgit v1.2.3-70-g09d2