From 0cbcc0518c2884975d8530d28f2a6ffbaa5eda2d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 8 Sep 2018 17:19:34 -0700 Subject: [PATCH] Shearwater: use the correct address to download dives Replace the hardcoded address which the one we determined based on the logbook type available. Signed-off-by: Dirk Hohndel --- src/shearwater_petrel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shearwater_petrel.c b/src/shearwater_petrel.c index 4307eac..4b5eca9 100644 --- a/src/shearwater_petrel.c +++ b/src/shearwater_petrel.c @@ -33,7 +33,6 @@ #define MANIFEST_ADDR 0xE0000000 #define MANIFEST_SIZE 0x600 -#define DIVE_ADDR 0xC0000000 #define DIVE_SIZE 0xFFFFFF #define RECORD_SIZE 0x20 @@ -370,7 +369,7 @@ shearwater_petrel_device_foreach (dc_device_t *abstract, dc_dive_callback_t call // Download the dive. progress.current = NSTEPS * current; progress.maximum = NSTEPS * maximum; - rc = shearwater_common_download (&device->base, buffer, DIVE_ADDR + address, DIVE_SIZE, 1, &progress); + rc = shearwater_common_download (&device->base, buffer, base_addr + address, DIVE_SIZE, 1, &progress); if (rc != DC_STATUS_SUCCESS) { ERROR (abstract->context, "Failed to download the dive."); dc_buffer_free (buffer);