Pārlūkot izejas kodu

Only compare XYZ to check motion

Scott Lahteine 7 gadus atpakaļ
vecāks
revīzija
204199e1ce

+ 1
- 4
Marlin/src/feature/bedlevel/bedlevel.cpp Parādīt failu

149
     planner.set_z_fade_height(zfh);
149
     planner.set_z_fade_height(zfh);
150
 
150
 
151
     if (level_active) {
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
       #if ENABLED(AUTO_BED_LEVELING_UBL)
153
       #if ENABLED(AUTO_BED_LEVELING_UBL)
157
         set_bed_leveling_enabled(true);  // turn back on after changing fade height
154
         set_bed_leveling_enabled(true);  // turn back on after changing fade height
158
       #else
155
       #else

+ 1
- 4
Marlin/src/gcode/bedlevel/M420.cpp Parādīt failu

45
  */
45
  */
46
 void GcodeSuite::M420() {
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
   #if ENABLED(AUTO_BED_LEVELING_UBL)
50
   #if ENABLED(AUTO_BED_LEVELING_UBL)
54
 
51
 

+ 1
- 4
Marlin/src/module/configuration_store.cpp Parādīt failu

220
  * Post-process after Retrieve or Reset
220
  * Post-process after Retrieve or Reset
221
  */
221
  */
222
 void MarlinSettings::postprocess() {
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
   // steps per s2 needs to be updated to agree with units per s2
225
   // steps per s2 needs to be updated to agree with units per s2
229
   planner.reset_acceleration_rates();
226
   planner.reset_acceleration_rates();

Notiek ielāde…
Atcelt
Saglabāt