Skip to content

Commit

Permalink
Merge pull request #60 from mikeller/fix_serial_setting
Browse files Browse the repository at this point in the history
I verified that this bug is breaking the reporting of the serial number on my dive computers as well - they all report as `0`. Merging this as it is affecting a lot of users.
  • Loading branch information
mikeller authored May 3, 2024
2 parents ca55a11 + bff6f7c commit 8922147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ dc_parser_new (dc_parser_t **out, dc_device_t *device, const unsigned char data[
return DC_STATUS_INVALIDARGS;

status = dc_parser_new_internal (&parser, device->context, data, size,
dc_device_get_type (device), device->devinfo.model, 0);
dc_device_get_type (device), device->devinfo.model, device->devinfo.serial);
if (status != DC_STATUS_SUCCESS)
goto error_exit;

Expand Down

0 comments on commit 8922147

Please sign in to comment.