Selaa lähdekoodia

Work around a compiler bug

See #15478
Scott Lahteine 4 vuotta sitten
vanhempi
commit
1df6c7a46c

+ 0
- 5
Marlin/src/inc/Conditionals_post.h Näytä tiedosto

@@ -220,11 +220,6 @@
220 220
   #ifndef Z_SAFE_HOMING_Y_POINT
221 221
     #define Z_SAFE_HOMING_Y_POINT _SAFE_POINT(Y)
222 222
   #endif
223
-  #define X_TILT_FULCRUM Z_SAFE_HOMING_X_POINT
224
-  #define Y_TILT_FULCRUM Z_SAFE_HOMING_Y_POINT
225
-#else
226
-  #define X_TILT_FULCRUM X_HOME_POS
227
-  #define Y_TILT_FULCRUM Y_HOME_POS
228 223
 #endif
229 224
 
230 225
 /**

+ 9
- 0
Marlin/src/module/planner.cpp Näytä tiedosto

@@ -1350,6 +1350,15 @@ void Planner::check_axes_activity() {
1350 1350
 #endif
1351 1351
 
1352 1352
 #if HAS_LEVELING
1353
+
1354
+  constexpr xy_pos_t level_fulcrum = {
1355
+    #if ENABLED(Z_SAFE_HOMING)
1356
+      Z_SAFE_HOMING_X_POINT, Z_SAFE_HOMING_Y_POINT
1357
+    #else
1358
+      X_HOME_POS, Y_HOME_POS
1359
+    #endif
1360
+  };
1361
+
1353 1362
   /**
1354 1363
    * rx, ry, rz - Cartesian positions in mm
1355 1364
    *              Leveled XYZ on completion

+ 0
- 1
Marlin/src/module/planner.h Näytä tiedosto

@@ -268,7 +268,6 @@ class Planner {
268 268
       static bool leveling_active;          // Flag that bed leveling is enabled
269 269
       #if ABL_PLANAR
270 270
         static matrix_3x3 bed_level_matrix; // Transform to compensate for bed level
271
-        static constexpr xy_pos_t level_fulcrum = { X_TILT_FULCRUM, Y_TILT_FULCRUM };
272 271
       #endif
273 272
       #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
274 273
         static float z_fade_height, inverse_z_fade_height;

Loading…
Peruuta
Tallenna