aboutsummaryrefslogtreecommitdiff
path: root/src/survive_vive.c
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-05-06 22:19:14 -0400
committerJoshua Allen <axlecrusher@gmail.com>2017-05-06 22:19:14 -0400
commita93ea0625daa2024ca20e04f1aa6da1d0ecf018c (patch)
treef68e0e3c52c1f5cc3df49509458020579445b735 /src/survive_vive.c
parent6c748afc397f29cd461e54c09d8a3cb45272f4ad (diff)
downloadlibsurvive-a93ea0625daa2024ca20e04f1aa6da1d0ecf018c.tar.gz
libsurvive-a93ea0625daa2024ca20e04f1aa6da1d0ecf018c.tar.bz2
check proper pointer for null
Diffstat (limited to 'src/survive_vive.c')
-rwxr-xr-xsrc/survive_vive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/survive_vive.c b/src/survive_vive.c
index 720df77..95e688e 100755
--- a/src/survive_vive.c
+++ b/src/survive_vive.c
@@ -1080,7 +1080,7 @@ void calibrate_gyro(SurviveObject* so, FLT* agm) {
agm[2] -= so->gyro_bias[2];
}
- if (so->gyro_bias != NULL) {
+ if (so->gyro_scale != NULL) {
agm[0] *= so->gyro_scale[0];
agm[1] *= so->gyro_scale[1];
agm[2] *= so->gyro_scale[2];