diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-02-02 17:30:04 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-02-02 17:30:04 +0100 |
commit | 6461f2e549876cb54456925f47094bb53e2c8672 (patch) | |
tree | 3d656f27626cadacd416e350a9617e059a507876 /test | |
parent | 3d19dae1d6a12d64ec32bf12525f1d04b9069f27 (diff) | |
download | libuca-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.c | 3 |
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); |