From 8f686ce1d8cac53c5befb5fe6b2cc9729bf470d5 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sat, 30 Mar 2024 22:32:26 +1030 Subject: [PATCH] Shearwater: Remove timesync for Predator. Remove the timesync function from the code for the Predator - testing has shown that this function is not supported by this model. Signed-off-by: Michael Keller --- src/shearwater_predator.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/shearwater_predator.c b/src/shearwater_predator.c index fffd511f..d4c97b4a 100644 --- a/src/shearwater_predator.c +++ b/src/shearwater_predator.c @@ -44,7 +44,6 @@ typedef struct shearwater_predator_device_t { static dc_status_t shearwater_predator_device_set_fingerprint (dc_device_t *abstract, const unsigned char data[], unsigned int size); static dc_status_t shearwater_predator_device_dump (dc_device_t *abstract, dc_buffer_t *buffer); static dc_status_t shearwater_predator_device_foreach (dc_device_t *abstract, dc_dive_callback_t callback, void *userdata); -static dc_status_t shearwater_predator_device_timesync (dc_device_t *abstract, const dc_datetime_t *datetime); static const dc_device_vtable_t shearwater_predator_device_vtable = { sizeof(shearwater_predator_device_t), @@ -54,7 +53,7 @@ static const dc_device_vtable_t shearwater_predator_device_vtable = { NULL, /* write */ shearwater_predator_device_dump, /* dump */ shearwater_predator_device_foreach, /* foreach */ - shearwater_predator_device_timesync, + NULL, /* timesync */ NULL /* close */ }; @@ -358,9 +357,3 @@ shearwater_predator_extract_dives (dc_device_t *abstract, const unsigned char da return shearwater_predator_extract_predator (abstract, data, size, callback, userdata); } } - -static dc_status_t -shearwater_predator_device_timesync (dc_device_t *abstract, const dc_datetime_t *datetime) -{ - return shearwater_common_timesync_local ((shearwater_common_device_t *) abstract, datetime); -}