diff --git a/Marlin/planner.h b/Marlin/planner.h index d5746fa75..80b20c478 100644 --- a/Marlin/planner.h +++ b/Marlin/planner.h @@ -198,17 +198,11 @@ class Planner { static bool is_full() { return (block_buffer_tail == BLOCK_MOD(block_buffer_head + 1)); } - #if HAS_ABL || ENABLED(MESH_BED_LEVELING) + #if PLANNER_LEVELING + #define ARG_X float lx #define ARG_Y float ly #define ARG_Z float lz - #else - #define ARG_X const float &lx - #define ARG_Y const float &ly - #define ARG_Z const float &lz - #endif - - #if PLANNER_LEVELING /** * Apply leveling to transform a cartesian position @@ -218,6 +212,12 @@ class Planner { static void apply_leveling(float logical[XYZ]) { apply_leveling(logical[X_AXIS], logical[Y_AXIS], logical[Z_AXIS]); } static void unapply_leveling(float logical[XYZ]); + #else + + #define ARG_X const float &lx + #define ARG_Y const float &ly + #define ARG_Z const float &lz + #endif /**