From a978c195a8b0cbf9ff1330ab8c6af1deb79a8b83 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 18 Mar 2018 02:11:20 -0400 Subject: trying new config mode --- data_recorder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data_recorder.c') 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); -- cgit v1.2.3 From 8e65bc97327b27014fc9507374a20bfc468e06ee Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sun, 18 Mar 2018 21:44:58 -0600 Subject: Took out installation after users could install hooks --- data_recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data_recorder.c') diff --git a/data_recorder.c b/data_recorder.c index 47c4010..e1dc014 100644 --- a/data_recorder.c +++ b/data_recorder.c @@ -138,9 +138,9 @@ int main(int argc, char **argv) { survive_install_angle_fn(ctx, my_angle_process); survive_install_info_fn(ctx, my_info_process); + survive_startup(ctx); survive_cal_install(ctx); - survive_startup(ctx); if (!ctx) { fprintf(stderr, "Fatal. Could not start\n"); -- cgit v1.2.3