summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-20 17:25:53 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-20 17:25:53 +0200
commit7e1ec3056d1fdb6786c452ba6ed7e978355a98c2 (patch)
tree3e423903d8ad51c115db17f699e071a162447c24 /test/grab.c
parentf3fdc154a50516dc969942594e884cd0be0b29d0 (diff)
downloadlibuca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.gz
libuca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.bz2
libuca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.tar.xz
libuca-7e1ec3056d1fdb6786c452ba6ed7e978355a98c2.zip
Add: auto transfer property and readout function
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c
index 6ade84a..59a4fb3 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
int counter = 0;
while ((error == UCA_NO_ERROR) && (counter < 20)) {
- handle_error(uca_cam_grab(cam, (char *) buffer, NULL));
+ error = uca_cam_grab(cam, (char *) buffer, NULL);
snprintf(filename, FILENAME_MAX, "frame-%08i.raw", counter++);
FILE *fp = fopen(filename, "wb");
fwrite(buffer, width*height, pixel_size, fp);