diff options
author | Joshua Allen <axlecrusher@gmail.com> | 2017-05-06 22:19:14 -0400 |
---|---|---|
committer | Joshua Allen <axlecrusher@gmail.com> | 2017-05-06 22:19:14 -0400 |
commit | a93ea0625daa2024ca20e04f1aa6da1d0ecf018c (patch) | |
tree | f68e0e3c52c1f5cc3df49509458020579445b735 | |
parent | 6c748afc397f29cd461e54c09d8a3cb45272f4ad (diff) | |
download | libsurvive-a93ea0625daa2024ca20e04f1aa6da1d0ecf018c.tar.gz libsurvive-a93ea0625daa2024ca20e04f1aa6da1d0ecf018c.tar.bz2 |
check proper pointer for null
-rwxr-xr-x | src/survive_vive.c | 2 |
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]; |