summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-19 14:29:57 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-19 14:29:57 +0200
commit338c435be149cdc0a64e548d3ff3a86d12b1ac38 (patch)
tree1fac47f734c5746d545f730d5a05c73eb3c74669 /test/grab.c
parentf4447a4d02d21c4820d8e469b27f308326f77922 (diff)
downloaduca-338c435be149cdc0a64e548d3ff3a86d12b1ac38.tar.gz
uca-338c435be149cdc0a64e548d3ff3a86d12b1ac38.tar.bz2
uca-338c435be149cdc0a64e548d3ff3a86d12b1ac38.tar.xz
uca-338c435be149cdc0a64e548d3ff3a86d12b1ac38.zip
Fix: timestamp mode
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/grab.c b/test/grab.c
index ab3263f..6ade84a 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -54,8 +54,7 @@ int main(int argc, char *argv[])
int counter = 0;
while ((error == UCA_NO_ERROR) && (counter < 20)) {
- error = uca_cam_grab(cam, (char *) buffer, NULL);
- printf("error = 0x%x\n", error);
+ handle_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);