🎨 abs => ABS

This commit is contained in:
Scott Lahteine
2021-07-29 23:40:27 -05:00
committed by Scott Lahteine
parent eb8649ba42
commit 3e559d5c1c
11 changed files with 26 additions and 26 deletions

View File

@@ -121,7 +121,7 @@ ENCODER_DiffState Encoder_ReceiveAnalyze() {
lastEncoderBits = newbutton;
}
if (abs(temp_diff) >= ENCODER_PULSES_PER_STEP) {
if (ABS(temp_diff) >= ENCODER_PULSES_PER_STEP) {
if (temp_diff > 0) temp_diffState = ENCODER_DIFF_CW;
else temp_diffState = ENCODER_DIFF_CCW;