Browse Source

Fix position sync on M420 S0

Scott Lahteine 5 years ago
parent
commit
b8fe3bbd6d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/bedlevel/M420.cpp

+ 2
- 2
Marlin/src/gcode/bedlevel/M420.cpp View File

@@ -84,12 +84,12 @@ void GcodeSuite::M420() {
84 84
     }
85 85
   #endif
86 86
 
87
+  xyz_pos_t oldpos = current_position;
88
+
87 89
   // If disabling leveling do it right away
88 90
   // (Don't disable for just M420 or M420 V)
89 91
   if (seen_S && !to_enable) set_bed_leveling_enabled(false);
90 92
 
91
-  xyz_pos_t oldpos = current_position;
92
-
93 93
   #if ENABLED(AUTO_BED_LEVELING_UBL)
94 94
 
95 95
     // L to load a mesh from the EEPROM

Loading…
Cancel
Save