瀏覽代碼

Merge pull request #5793 from thinkyhead/rc_adjust_probe_output

Adjust probe_pt() terminal output to respect probe z-offset
Scott Lahteine 7 年之前
父節點
當前提交
7fe7a0c8be
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp 查看文件

@@ -2208,7 +2208,7 @@ static void clean_up_after_endstop_or_probe_move() {
2208 2208
       SERIAL_PROTOCOLPGM(" Y: ");
2209 2209
       SERIAL_PROTOCOL_F(y, 3);
2210 2210
       SERIAL_PROTOCOLPGM(" Z: ");
2211
-      SERIAL_PROTOCOL_F(measured_z, 3);
2211
+      SERIAL_PROTOCOL_F(measured_z - -zprobe_zoffset + 0.0001, 3);
2212 2212
       SERIAL_EOL;
2213 2213
     }
2214 2214
 
@@ -4455,7 +4455,7 @@ inline void gcode_G28() {
4455 4455
     SERIAL_PROTOCOLPGM(" Y: ");
4456 4456
     SERIAL_PROTOCOL(Y_probe_location + 0.0001);
4457 4457
     SERIAL_PROTOCOLPGM(" Z: ");
4458
-    SERIAL_PROTOCOLLN(measured_z + 0.0001);
4458
+    SERIAL_PROTOCOLLN(measured_z - -zprobe_zoffset + 0.0001);
4459 4459
 
4460 4460
     clean_up_after_endstop_or_probe_move();
4461 4461
 

Loading…
取消
儲存