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:
parent
cdcfef6c1a
commit
7ce057d2ba
@ -92,7 +92,7 @@ receive_data (uwatec_g2_device_t *device, dc_event_progress_t *progress, unsigne
|
|||||||
// Update and emit a progress event.
|
// Update and emit a progress event.
|
||||||
if (progress) {
|
if (progress) {
|
||||||
progress->current += len;
|
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);
|
memcpy(data, buf + 1, len);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user