aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorJustin Berger <jdavidberger@gmail.com>2018-07-12 22:52:18 +0000
committerJustin Berger <jdavidberger@gmail.com>2018-07-12 22:52:18 +0000
commite873c787141daa5171ceffed0ec2e1836378cccc (patch)
tree25a1b047ebffa63b5d641a77e3d007492cfb0a73 /src/survive_cal.c
parent0cadc2d0efbdba661f3c41e6bca43c8cefb283b7 (diff)
downloadlibsurvive-e873c787141daa5171ceffed0ec2e1836378cccc.tar.gz
libsurvive-e873c787141daa5171ceffed0ec2e1836378cccc.tar.bz2
Fixed linker error; calibration installation
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c3
1 files changed, 2 insertions, 1 deletions
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;