Skip to content

Commit e699c49

Browse files
committed
fix comparison of integer expressions of different signedness
1 parent b21fe45 commit e699c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/sensors/gyro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ FAST_CODE_NOINLINE float applySmithPredictor(smithPredictor_t *smithPredictor, f
469469
delayCompensatedGyro = pt1FilterApply(&smithPredictor->smithPredictorFilter, delayCompensatedGyro);
470470
gyroFiltered += delayCompensatedGyro;
471471

472-
if (axis == gyro.gyroDebugAxis) {
472+
if (axis == (int)(gyro.gyroDebugAxis)) {
473473
DEBUG_SET(DEBUG_SMITH_PREDICTOR, 0, lrintf(input));
474474
DEBUG_SET(DEBUG_SMITH_PREDICTOR, 1, lrintf(gyroFiltered));
475475
DEBUG_SET(DEBUG_SMITH_PREDICTOR, 2, lrintf(delayedGyro));

0 commit comments

Comments
 (0)