From 7ce057d2babed0cc8ccbb810afd2d33b0c191ec2 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 4 Jul 2017 14:58:52 +0200 Subject: [PATCH] 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. --- src/uwatec_g2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uwatec_g2.c b/src/uwatec_g2.c index e3cc527..3328b4c 100644 --- a/src/uwatec_g2.c +++ b/src/uwatec_g2.c @@ -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);