1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-28 14:24:34 +00:00

No leveling data in M114 without leveling

This commit is contained in:
Scott Lahteine 2017-11-12 23:06:16 -06:00
parent 5926159890
commit aa616cd410

View File

@ -8508,6 +8508,7 @@ void report_current_position() {
SERIAL_PROTOCOLPGM("Raw: "); SERIAL_PROTOCOLPGM("Raw: ");
report_xyz(current_position); report_xyz(current_position);
#if PLANNER_LEVELING
SERIAL_PROTOCOLPGM("Leveled:"); SERIAL_PROTOCOLPGM("Leveled:");
float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] }; float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
planner.apply_leveling(leveled); planner.apply_leveling(leveled);
@ -8517,6 +8518,7 @@ void report_current_position() {
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