Browse Source

Merge pull request #3328 from RicardoGA/RC_Babystepping_fix

Babystepping Fix
Scott Lahteine 8 years ago
parent
commit
f08b0d034f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -522,9 +522,9 @@ void lcd_set_home_offsets() {
522 522
   static void _lcd_babystep(const int axis, const char* msg) {
523 523
     ENCODER_DIRECTION_NORMAL();
524 524
     if (encoderPosition != 0) {
525
+      int distance =  (int)encoderPosition * BABYSTEP_MULTIPLICATOR;
525 526
       encoderPosition = 0;
526 527
       lcdDrawUpdate = 1;
527
-      int distance =  (int)encoderPosition * BABYSTEP_MULTIPLICATOR;
528 528
       #if ENABLED(COREXY) || ENABLED(COREXZ)
529 529
         #if ENABLED(BABYSTEP_XY)
530 530
           switch(axis) {

Loading…
Cancel
Save