No leveling data in M114 if no leveling is enabled

This commit is contained in:
Scott Lahteine 2017-11-12 23:03:38 -06:00
parent f5d210c35c
commit e8e92f8969

View file

@ -56,15 +56,17 @@
SERIAL_PROTOCOLPGM("Raw: "); SERIAL_PROTOCOLPGM("Raw: ");
report_xyz(current_position); report_xyz(current_position);
SERIAL_PROTOCOLPGM("Leveled:"); #if PLANNER_LEVELING
float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] }; SERIAL_PROTOCOLPGM("Leveled:");
planner.apply_leveling(leveled); float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
report_xyz(leveled); planner.apply_leveling(leveled);
report_xyz(leveled);
SERIAL_PROTOCOLPGM("UnLevel:"); SERIAL_PROTOCOLPGM("UnLevel:");
float unleveled[XYZ] = { leveled[X_AXIS], leveled[Y_AXIS], leveled[Z_AXIS] }; float unleveled[XYZ] = { leveled[X_AXIS], leveled[Y_AXIS], leveled[Z_AXIS] };
planner.unapply_leveling(unleveled); planner.unapply_leveling(unleveled);
report_xyz(unleveled); report_xyz(unleveled);
#endif
#if IS_KINEMATIC #if IS_KINEMATIC
#if IS_SCARA #if IS_SCARA