We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a17ae commit 3724f76Copy full SHA for 3724f76
examples/camtest.c
@@ -26,6 +26,7 @@
26
#include <signal.h>
27
#include <stdbool.h>
28
#include <stdio.h>
29
+#include <stdlib.h>
30
#include <string.h>
31
#include "libfreenect.h"
32
@@ -92,6 +93,12 @@ int main(int argc, char** argv)
92
93
return ret;
94
}
95
96
+ {
97
+ char* serial = freenect_get_device_serial(fn_dev);
98
+ if (serial) printf("Found device with serial %s\n", serial);
99
+ free(serial);
100
+ }
101
+
102
// Set depth and video modes.
103
ret = freenect_set_depth_mode(fn_dev, freenect_find_depth_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_DEPTH_MM));
104
if (ret < 0)
0 commit comments