Merge pull request #60 from mikeller/fix_serial_setting
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.
This commit is contained in:
commit
89221475cf
@ -231,7 +231,7 @@ dc_parser_new (dc_parser_t **out, dc_device_t *device, const unsigned char data[
|
|||||||
return DC_STATUS_INVALIDARGS;
|
return DC_STATUS_INVALIDARGS;
|
||||||
|
|
||||||
status = dc_parser_new_internal (&parser, device->context, data, size,
|
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)
|
if (status != DC_STATUS_SUCCESS)
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user