From bd7013de1e06a759e519ee5f9c203f4c03f25e83 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 14 Dec 2011 16:20:24 +0100 Subject: Add: pco.4000 support --- test/grab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/grab.c') diff --git a/test/grab.c b/test/grab.c index d4f458a..bcee9aa 100644 --- a/test/grab.c +++ b/test/grab.c @@ -50,6 +50,7 @@ int main(int argc, char *argv[]) uint16_t *buffer = (uint16_t *) malloc(width * height * pixel_size); handle_error(uca_cam_start_recording(cam)); + sleep(3); uint32_t error = UCA_NO_ERROR; char filename[FILENAME_MAX]; @@ -62,8 +63,8 @@ int main(int argc, char *argv[]) fwrite(buffer, width*height, pixel_size, fp); fclose(fp); } - handle_error(uca_cam_stop_recording(cam)); + uca_destroy(u); free(buffer); -- cgit v1.2.3