Fix the progress events

I accidentally passed the address of the progress pointer to the
device_event_emit() function, instead of the pointer itself. Oops.
This commit is contained in:
Jef Driesen 2017-07-04 14:58:52 +02:00
parent cdcfef6c1a
commit 7ce057d2ba

View File

@ -92,7 +92,7 @@ receive_data (uwatec_g2_device_t *device, dc_event_progress_t *progress, unsigne
// Update and emit a progress event.
if (progress) {
progress->current += len;
device_event_emit (&device->base, DC_EVENT_PROGRESS, &progress);
device_event_emit (&device->base, DC_EVENT_PROGRESS, progress);
}
memcpy(data, buf + 1, len);