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);