summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-02-02 17:30:04 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-02-02 17:30:04 +0100
commit6461f2e549876cb54456925f47094bb53e2c8672 (patch)
tree3d656f27626cadacd416e350a9617e059a507876 /test
parent3d19dae1d6a12d64ec32bf12525f1d04b9069f27 (diff)
downloadlibuca-6461f2e549876cb54456925f47094bb53e2c8672.tar.gz
libuca-6461f2e549876cb54456925f47094bb53e2c8672.tar.bz2
libuca-6461f2e549876cb54456925f47094bb53e2c8672.tar.xz
libuca-6461f2e549876cb54456925f47094bb53e2c8672.zip
Add preliminary UFO camera support back again
Diffstat (limited to 'test')
-rw-r--r--test/grab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/grab.c b/test/grab.c
index b7c24dd..54e6955 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -75,6 +75,9 @@ int main(int argc, char *argv[])
while ((error == UCA_NO_ERROR) && (counter < 20)) {
error = uca_cam_grab(cam, (char *) buffer, NULL);
+ if (error != UCA_NO_ERROR)
+ break;
+
snprintf(filename, FILENAME_MAX, "frame-%08i.raw", counter++);
FILE *fp = fopen(filename, "wb");
fwrite(buffer, width*height, pixel_size, fp);