]> git.tdb.fi Git - ext/subsurface.git/blobdiff - libdivecomputer.c
Fix progress bar during libdivecomputer imports
[ext/subsurface.git] / libdivecomputer.c
index cf8b048c9e79e62ea63f30bc04a364ce3ce59855..f645bff1495eed865f37f8991d16f2868e270e49 100644 (file)
@@ -369,7 +369,7 @@ static void event_cb(device_t *device, device_event_t event, const void *data, v
                printf("Event: waiting for user action\n");
                break;
        case DEVICE_EVENT_PROGRESS:
-               update_progressbar(devdata->progress,
+               update_progressbar(&devdata->progress,
                        (double) progress->current / (double) progress->maximum);
                break;
        case DEVICE_EVENT_DEVINFO: