Skip to content

Commit

Permalink
fix comparison of integer expressions of different signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Nov 22, 2022
1 parent b21fe45 commit e699c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/sensors/gyro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e699c49

Please sign in to comment.