From a93ea0625daa2024ca20e04f1aa6da1d0ecf018c Mon Sep 17 00:00:00 2001 From: Joshua Allen Date: Sat, 6 May 2017 22:19:14 -0400 Subject: check proper pointer for null --- src/survive_vive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/survive_vive.c') 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]; -- cgit v1.2.3