aboutsummaryrefslogtreecommitdiff
path: root/data_recorder.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-18 02:11:20 -0400
committercnlohr <lohr85@gmail.com>2018-03-18 02:11:20 -0400
commita978c195a8b0cbf9ff1330ab8c6af1deb79a8b83 (patch)
tree698e6a1b20be058c824c496d692995633bf68aa3 /data_recorder.c
parentd4466fa46e88d9d146ae3116004f74c9beda50f7 (diff)
downloadlibsurvive-a978c195a8b0cbf9ff1330ab8c6af1deb79a8b83.tar.gz
libsurvive-a978c195a8b0cbf9ff1330ab8c6af1deb79a8b83.tar.bz2
trying new config mode
Diffstat (limited to 'data_recorder.c')
-rw-r--r--data_recorder.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/data_recorder.c b/data_recorder.c
index 271b996..47c4010 100644
--- a/data_recorder.c
+++ b/data_recorder.c
@@ -128,8 +128,9 @@ int main(int argc, char **argv) {
output_file = stdout;
}
- ctx = survive_init_with_config_cb(0, my_config_process);
+ ctx = survive_init( argc, argv );
+ survive_install_htc_config_fn(ctx,my_config_process );
survive_install_light_fn(ctx, my_light_process);
survive_install_imu_fn(ctx, my_imu_process);
survive_install_lighthouse_pose_fn(ctx, my_lighthouse_process);
@@ -139,6 +140,8 @@ int main(int argc, char **argv) {
survive_cal_install(ctx);
+ survive_startup(ctx);
+
if (!ctx) {
fprintf(stderr, "Fatal. Could not start\n");
exit(1);