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 <dirk@hohndel.org>
This commit is contained in:
parent
f705ddefa8
commit
91766d1ed0
@ -32,7 +32,7 @@ extern "C" {
|
||||
|
||||
#define ID_SERIAL 0x8010
|
||||
#define ID_FIRMWARE 0x8011
|
||||
#define ID_RDBI 0x8021
|
||||
#define ID_LOGUPLOAD 0x8021
|
||||
#define ID_HARDWARE 0x8050
|
||||
|
||||
#define PREDATOR 2
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user