소스 검색

🐛 One-based G35 point index output

Scott Lahteine 3 년 전
부모
커밋
5ecef6e584
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      Marlin/src/gcode/bedlevel/G35.cpp

+ 2
- 2
Marlin/src/gcode/bedlevel/G35.cpp 파일 보기

@@ -106,7 +106,7 @@ void GcodeSuite::G35() {
106 106
     const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[i], PROBE_PT_RAISE, 0, true);
107 107
 
108 108
     if (isnan(z_probed_height)) {
109
-      SERIAL_ECHOPAIR("G35 failed at point ", i, " (");
109
+      SERIAL_ECHOPAIR("G35 failed at point ", i + 1, " (");
110 110
       SERIAL_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
111 111
       SERIAL_CHAR(')');
112 112
       SERIAL_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y);
@@ -115,7 +115,7 @@ void GcodeSuite::G35() {
115 115
     }
116 116
 
117 117
     if (DEBUGGING(LEVELING)) {
118
-      DEBUG_ECHOPAIR("Probing point ", i, " (");
118
+      DEBUG_ECHOPAIR("Probing point ", i + 1, " (");
119 119
       DEBUG_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
120 120
       DEBUG_CHAR(')');
121 121
       DEBUG_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y, SP_Z_STR, z_probed_height);

Loading…
취소
저장