Browse Source

Minor syntax tweak with encoderPosition

Scott Lahteine 9 years ago
parent
commit
a70c3ffc21
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -901,7 +901,7 @@ void lcd_cooldown() {
901 901
     ENCODER_DIRECTION_NORMAL();
902 902
 
903 903
     // Encoder wheel adjusts the Z position
904
-    if (encoderPosition != 0 && movesplanned() <= 3) {
904
+    if (encoderPosition && movesplanned() <= 3) {
905 905
       refresh_cmd_timeout();
906 906
       current_position[Z_AXIS] += float((int)encoderPosition) * (MBL_Z_STEP);
907 907
       if (min_software_endstops) NOLESS(current_position[Z_AXIS], Z_MIN_POS);

Loading…
Cancel
Save