Make leveling_is_active a macro
This commit is contained in:
@ -333,7 +333,7 @@ void safe_delay(millis_t ms) {
|
||||
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
SERIAL_ECHOPGM("UBL");
|
||||
#endif
|
||||
if (leveling_is_active()) {
|
||||
if (LEVELING_IS_ACTIVE()) {
|
||||
SERIAL_ECHOLNPGM(" (enabled)");
|
||||
#if ABL_PLANAR
|
||||
const float diff[XYZ] = {
|
||||
@ -364,7 +364,7 @@ void safe_delay(millis_t ms) {
|
||||
#elif ENABLED(MESH_BED_LEVELING)
|
||||
|
||||
SERIAL_ECHOPGM("Mesh Bed Leveling");
|
||||
if (leveling_is_active()) {
|
||||
if (LEVELING_IS_ACTIVE()) {
|
||||
float lz = current_position[Z_AXIS];
|
||||
planner.apply_leveling(current_position[X_AXIS], current_position[Y_AXIS], lz);
|
||||
SERIAL_ECHOLNPGM(" (enabled)");
|
||||
|
Reference in New Issue
Block a user