Merge pull request #5793 from thinkyhead/rc_adjust_probe_output

Adjust probe_pt() terminal output to respect probe z-offset
This commit is contained in:
Scott Lahteine 2017-02-09 23:05:02 -06:00 committed by GitHub
commit 7fe7a0c8be

View File

@ -2208,7 +2208,7 @@ static void clean_up_after_endstop_or_probe_move() {
SERIAL_PROTOCOLPGM(" Y: "); SERIAL_PROTOCOLPGM(" Y: ");
SERIAL_PROTOCOL_F(y, 3); SERIAL_PROTOCOL_F(y, 3);
SERIAL_PROTOCOLPGM(" Z: "); SERIAL_PROTOCOLPGM(" Z: ");
SERIAL_PROTOCOL_F(measured_z, 3); SERIAL_PROTOCOL_F(measured_z - -zprobe_zoffset + 0.0001, 3);
SERIAL_EOL; SERIAL_EOL;
} }
@ -4455,7 +4455,7 @@ inline void gcode_G28() {
SERIAL_PROTOCOLPGM(" Y: "); SERIAL_PROTOCOLPGM(" Y: ");
SERIAL_PROTOCOL(Y_probe_location + 0.0001); SERIAL_PROTOCOL(Y_probe_location + 0.0001);
SERIAL_PROTOCOLPGM(" Z: "); SERIAL_PROTOCOLPGM(" Z: ");
SERIAL_PROTOCOLLN(measured_z + 0.0001); SERIAL_PROTOCOLLN(measured_z - -zprobe_zoffset + 0.0001);
clean_up_after_endstop_or_probe_move(); clean_up_after_endstop_or_probe_move();