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

Loading…
Cancel
Save