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 22:21:59 -0400
commitd21999e85f29edae7de8abdfb293da870e7fad47 (patch)
treeb28bd423ed9ae5961394ece0c479eb981418f57a /data_recorder.c
parent51d3954e38e01e2c327f561cc27f6d8abbc9907d (diff)
downloadlibsurvive-d21999e85f29edae7de8abdfb293da870e7fad47.tar.gz
libsurvive-d21999e85f29edae7de8abdfb293da870e7fad47.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);