Skip to content

Commit

Permalink
Fix Setting of the Device Serial Number.
Browse files Browse the repository at this point in the history
Fix setting of the serial number in `dc_parser_new()`.

Fixes subsurface/subsurface#4155

Signed-off-by: Michael Keller <[email protected]>
  • Loading branch information
mikeller committed May 3, 2024
1 parent ca55a11 commit bff6f7c
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 bff6f7c

Please sign in to comment.