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:
Michael Keller 2024-05-04 01:40:03 +12:00 committed by GitHub
commit 89221475cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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