From e699c49007b98ccf7a6d7a513c1910c3d28f0dcb Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Wed, 30 Mar 2022 12:58:20 -0500 Subject: [PATCH] fix comparison of integer expressions of different signedness --- src/main/sensors/gyro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index e397d3464f..172e8d08a2 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -469,7 +469,7 @@ FAST_CODE_NOINLINE float applySmithPredictor(smithPredictor_t *smithPredictor, f delayCompensatedGyro = pt1FilterApply(&smithPredictor->smithPredictorFilter, delayCompensatedGyro); gyroFiltered += delayCompensatedGyro; - if (axis == gyro.gyroDebugAxis) { + if (axis == (int)(gyro.gyroDebugAxis)) { DEBUG_SET(DEBUG_SMITH_PREDICTOR, 0, lrintf(input)); DEBUG_SET(DEBUG_SMITH_PREDICTOR, 1, lrintf(gyroFiltered)); DEBUG_SET(DEBUG_SMITH_PREDICTOR, 2, lrintf(delayedGyro));