From 91766d1ed0cc69c0cd1e27cad834b33987dce8e4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 25 Sep 2018 12:35:58 -0700 Subject: [PATCH] Shearwater: better macro name As Jef correctly points out, RDBI actually stands for Read Data by Identifier, and the correct identifier here is Log Upload. Signed-off-by: Dirk Hohndel --- src/shearwater_common.h | 8 ++++---- src/shearwater_petrel.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shearwater_common.h b/src/shearwater_common.h index e73a53d..b6c4532 100644 --- a/src/shearwater_common.h +++ b/src/shearwater_common.h @@ -30,10 +30,10 @@ extern "C" { #endif /* __cplusplus */ -#define ID_SERIAL 0x8010 -#define ID_FIRMWARE 0x8011 -#define ID_RDBI 0x8021 -#define ID_HARDWARE 0x8050 +#define ID_SERIAL 0x8010 +#define ID_FIRMWARE 0x8011 +#define ID_LOGUPLOAD 0x8021 +#define ID_HARDWARE 0x8050 #define PREDATOR 2 #define PETREL 3 diff --git a/src/shearwater_petrel.c b/src/shearwater_petrel.c index 8f9f68d..f4b84b1 100644 --- a/src/shearwater_petrel.c +++ b/src/shearwater_petrel.c @@ -255,7 +255,7 @@ shearwater_petrel_device_foreach (dc_device_t *abstract, dc_dive_callback_t call device_event_emit (abstract, DC_EVENT_DEVINFO, &devinfo); // Read the logbook type - rc = shearwater_common_identifier (&device->base, buffer, ID_RDBI); + rc = shearwater_common_identifier (&device->base, buffer, ID_LOGUPLOAD); if (rc != DC_STATUS_SUCCESS) { ERROR (abstract->context, "Failed to read the logbook type."); dc_buffer_free (buffer);