Skip to content

Commit

Permalink
Shearater: Remove timesync for Predator.
Browse files Browse the repository at this point in the history
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 <github@ike.ch>
  • Loading branch information
mikeller committed Mar 30, 2024
1 parent 62a29ee commit 06d07c3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/shearwater_predator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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 */
};

Expand Down Expand Up @@ -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);
}

0 comments on commit 06d07c3

Please sign in to comment.