|
@@ -2852,7 +2852,7 @@ inline void gcode_G28() {
|
2852
|
2852
|
float x_tmp = current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER,
|
2853
|
2853
|
y_tmp = current_position[Y_AXIS] + Y_PROBE_OFFSET_FROM_EXTRUDER,
|
2854
|
2854
|
z_tmp = current_position[Z_AXIS],
|
2855
|
|
- real_z = (float)st_get_position(Z_AXIS) / axis_steps_per_unit[Z_AXIS]; //get the real Z (since the auto bed leveling is already correcting the plane)
|
|
2855
|
+ real_z = st_get_position_mm(Z_AXIS); //get the real Z (since the auto bed leveling is already correcting the plane)
|
2856
|
2856
|
|
2857
|
2857
|
apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); // Apply the correction sending the probe offset
|
2858
|
2858
|
//line below controls z probe offset, zprobe_zoffset is the actual offset that can be modified via m851 or is read from EEPROM
|
|
@@ -3909,11 +3909,11 @@ inline void gcode_M114() {
|
3909
|
3909
|
SERIAL_PROTOCOL(current_position[E_AXIS]);
|
3910
|
3910
|
|
3911
|
3911
|
SERIAL_PROTOCOLPGM(MSG_COUNT_X);
|
3912
|
|
- SERIAL_PROTOCOL(float(st_get_position(X_AXIS))/axis_steps_per_unit[X_AXIS]);
|
|
3912
|
+ SERIAL_PROTOCOL(st_get_position_mm(X_AXIS));
|
3913
|
3913
|
SERIAL_PROTOCOLPGM(" Y:");
|
3914
|
|
- SERIAL_PROTOCOL(float(st_get_position(Y_AXIS))/axis_steps_per_unit[Y_AXIS]);
|
|
3914
|
+ SERIAL_PROTOCOL(st_get_position_mm(Y_AXIS));
|
3915
|
3915
|
SERIAL_PROTOCOLPGM(" Z:");
|
3916
|
|
- SERIAL_PROTOCOL(float(st_get_position(Z_AXIS))/axis_steps_per_unit[Z_AXIS]);
|
|
3916
|
+ SERIAL_PROTOCOL(st_get_position_mm(Z_AXIS));
|
3917
|
3917
|
|
3918
|
3918
|
SERIAL_EOL;
|
3919
|
3919
|
|