|
@@ -547,6 +547,9 @@ class Planner {
|
547
|
547
|
unapply_leveling(raw);
|
548
|
548
|
leveling_active = false;
|
549
|
549
|
}
|
|
550
|
+ #else
|
|
551
|
+ FORCE_INLINE static void apply_leveling(xyz_pos_t&) {}
|
|
552
|
+ FORCE_INLINE static void unapply_leveling(xyz_pos_t&) {}
|
550
|
553
|
#endif
|
551
|
554
|
|
552
|
555
|
#if ENABLED(FWRETRACT)
|
|
@@ -557,23 +560,15 @@ class Planner {
|
557
|
560
|
#endif
|
558
|
561
|
|
559
|
562
|
#if HAS_POSITION_MODIFIERS
|
560
|
|
- FORCE_INLINE static void apply_modifiers(xyze_pos_t &pos
|
561
|
|
- #if HAS_LEVELING
|
562
|
|
- , bool leveling = ENABLED(PLANNER_LEVELING)
|
563
|
|
- #endif
|
564
|
|
- ) {
|
|
563
|
+ FORCE_INLINE static void apply_modifiers(xyze_pos_t &pos, bool leveling=ENABLED(PLANNER_LEVELING)) {
|
565
|
564
|
TERN_(SKEW_CORRECTION, skew(pos));
|
566
|
|
- TERN_(HAS_LEVELING, if (leveling) apply_leveling(pos));
|
|
565
|
+ if (leveling) apply_leveling(pos);
|
567
|
566
|
TERN_(FWRETRACT, apply_retract(pos));
|
568
|
567
|
}
|
569
|
568
|
|
570
|
|
- FORCE_INLINE static void unapply_modifiers(xyze_pos_t &pos
|
571
|
|
- #if HAS_LEVELING
|
572
|
|
- , bool leveling = ENABLED(PLANNER_LEVELING)
|
573
|
|
- #endif
|
574
|
|
- ) {
|
|
569
|
+ FORCE_INLINE static void unapply_modifiers(xyze_pos_t &pos, bool leveling=ENABLED(PLANNER_LEVELING)) {
|
575
|
570
|
TERN_(FWRETRACT, unapply_retract(pos));
|
576
|
|
- TERN_(HAS_LEVELING, if (leveling) unapply_leveling(pos));
|
|
571
|
+ if (leveling) unapply_leveling(pos);
|
577
|
572
|
TERN_(SKEW_CORRECTION, unskew(pos));
|
578
|
573
|
}
|
579
|
574
|
#endif // HAS_POSITION_MODIFIERS
|