diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/enum.c | 4 | ||||
-rw-r--r-- | test/grab.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/enum.c b/test/enum.c index 17b595f..75ca596 100644 --- a/test/enum.c +++ b/test/enum.c @@ -65,14 +65,14 @@ int main(int argc, char *argv[]) break; case uca_uint32t: if (uca_cam_get_property(cam, i, &uint32_value, 0) == UCA_NO_ERROR) { - printf("%i %s", uint32_value, uca_unit_map[prop->unit]); + printf("%u %s", uint32_value, uca_unit_map[prop->unit]); } else printf("n/a"); break; case uca_uint8t: if (uca_cam_get_property(cam, i, &uint8_value, 0) == UCA_NO_ERROR) { - printf("%i %s", uint8_value, uca_unit_map[prop->unit]); + printf("%u %s", uint8_value, uca_unit_map[prop->unit]); } else printf("n/a"); diff --git a/test/grab.c b/test/grab.c index 16bafb1..740522b 100644 --- a/test/grab.c +++ b/test/grab.c @@ -67,16 +67,18 @@ 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); + /* sleep(3); */ uint32_t error = UCA_NO_ERROR; char filename[FILENAME_MAX]; int counter = 0; while ((error == UCA_NO_ERROR) && (counter < 20)) { + printf(" grab frame ... "); error = uca_cam_grab(cam, (char *) buffer, NULL); if (error != UCA_NO_ERROR) break; + printf("done\n"); snprintf(filename, FILENAME_MAX, "frame-%08i.raw", counter++); FILE *fp = fopen(filename, "wb"); |