Add the firmware version to the devinfo event

This commit is contained in:
Jef Driesen 2017-05-09 21:16:39 +02:00
parent a66da4a45e
commit 2854453f26

View File

@ -372,7 +372,7 @@ divesystem_idive_device_foreach (dc_device_t *abstract, dc_dive_callback_t callb
// Emit a device info event.
dc_event_devinfo_t devinfo;
devinfo.model = array_uint16_le (packet);
devinfo.firmware = 0;
devinfo.firmware = array_uint32_le (packet + 2);
devinfo.serial = array_uint32_le (packet + 6);
device_event_emit (abstract, DC_EVENT_DEVINFO, &devinfo);