🎨 abs => ABS

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-08-08 23:52:56 -05:00
1 parent eb8649ba42
commit 3e559d5c1c
11 files changed
+26 -26

No files matched your search

+1 -1
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;