From e873c787141daa5171ceffed0ec2e1836378cccc Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 12 Jul 2018 22:52:18 +0000 Subject: Fixed linker error; calibration installation --- src/survive_cal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/survive_cal.c') diff --git a/src/survive_cal.c b/src/survive_cal.c index 7d32a07..febd506 100755 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -160,7 +160,8 @@ void survive_cal_install( struct SurviveContext * ctx ) const char *RequiredTrackersForCal = survive_configs(ctx, "requiredtrackersforcal", SC_SETCONFIG, ""); // If there are no mandatory trackers for calibration; by default just accept whatever it is that the person has. - const uint32_t AllowAllTrackersForCal = survive_configi(ctx, "allowalltrackersforcal", SC_SETCONFIG, strlen(RequiredTrackersForCal) == 0); + const uint32_t AllowAllTrackersForCal = + survive_configi(ctx, "allowalltrackersforcal", SC_SETCONFIG, 0) || (strlen(RequiredTrackersForCal) == 0); size_t requiredTrackersFound = 0; -- cgit v1.2.3