Ver código fonte

Only compare XYZ to check motion

Scott Lahteine 7 anos atrás
pai
commit
204199e1ce

+ 1
- 4
Marlin/src/feature/bedlevel/bedlevel.cpp Ver arquivo

@@ -149,10 +149,7 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
149 149
     planner.set_z_fade_height(zfh);
150 150
 
151 151
     if (level_active) {
152
-      const float oldpos[XYZE] = {
153
-        current_position[X_AXIS], current_position[Y_AXIS],
154
-        current_position[Z_AXIS], current_position[E_AXIS]
155
-      };
152
+      const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
156 153
       #if ENABLED(AUTO_BED_LEVELING_UBL)
157 154
         set_bed_leveling_enabled(true);  // turn back on after changing fade height
158 155
       #else

+ 1
- 4
Marlin/src/gcode/bedlevel/M420.cpp Ver arquivo

@@ -45,10 +45,7 @@
45 45
  */
46 46
 void GcodeSuite::M420() {
47 47
 
48
-  const float oldpos[XYZE] = {
49
-    current_position[X_AXIS], current_position[Y_AXIS],
50
-    current_position[Z_AXIS], current_position[E_AXIS]
51
-  };
48
+  const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
52 49
 
53 50
   #if ENABLED(AUTO_BED_LEVELING_UBL)
54 51
 

+ 1
- 4
Marlin/src/module/configuration_store.cpp Ver arquivo

@@ -220,10 +220,7 @@ MarlinSettings settings;
220 220
  * Post-process after Retrieve or Reset
221 221
  */
222 222
 void MarlinSettings::postprocess() {
223
-  const float oldpos[XYZE] = {
224
-    current_position[X_AXIS], current_position[Y_AXIS],
225
-    current_position[Z_AXIS], current_position[E_AXIS]
226
-  };
223
+  const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
227 224
 
228 225
   // steps per s2 needs to be updated to agree with units per s2
229 226
   planner.reset_acceleration_rates();

Carregando…
Cancelar
Salvar