소스 검색

No more direct G28 calls

Scott Lahteine 4 년 전
부모
커밋
5171e9da93
3개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 2
    3
      Marlin/src/gcode/calibrate/G28.cpp
  2. 1
    1
      Marlin/src/gcode/gcode.cpp
  3. 1
    1
      Marlin/src/gcode/gcode.h

+ 2
- 3
Marlin/src/gcode/calibrate/G28.cpp 파일 보기

210
  *  Z   Home to the Z endstop
210
  *  Z   Home to the Z endstop
211
  *
211
  *
212
  */
212
  */
213
-void GcodeSuite::G28(const bool always_home_all) {
213
+void GcodeSuite::G28() {
214
   if (DEBUGGING(LEVELING)) {
214
   if (DEBUGGING(LEVELING)) {
215
     DEBUG_ECHOLNPGM(">>> G28");
215
     DEBUG_ECHOLNPGM(">>> G28");
216
     log_machine_info();
216
     log_machine_info();
311
   #if ENABLED(DELTA)
311
   #if ENABLED(DELTA)
312
 
312
 
313
     home_delta();
313
     home_delta();
314
-    UNUSED(always_home_all);
315
 
314
 
316
     #if ENABLED(IMPROVE_HOMING_RELIABILITY)
315
     #if ENABLED(IMPROVE_HOMING_RELIABILITY)
317
       end_slow_homing(slow_homing);
316
       end_slow_homing(slow_homing);
320
   #else // NOT DELTA
319
   #else // NOT DELTA
321
 
320
 
322
     const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'),
321
     const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'),
323
-               home_all = always_home_all || (homeX == homeY && homeX == homeZ),
322
+               home_all = homeX == homeY && homeX == homeZ, // All or None
324
                doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ;
323
                doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ;
325
 
324
 
326
     destination = current_position;
325
     destination = current_position;

+ 1
- 1
Marlin/src/gcode/gcode.cpp 파일 보기

277
         case 27: G27(); break;                                    // G27: Nozzle Park
277
         case 27: G27(); break;                                    // G27: Nozzle Park
278
       #endif
278
       #endif
279
 
279
 
280
-      case 28: G28(false); break;                                 // G28: Home all axes, one at a time
280
+      case 28: G28(); break;                                      // G28: Home one or more axes
281
 
281
 
282
       #if HAS_LEVELING
282
       #if HAS_LEVELING
283
         case 29:                                                  // G29: Bed leveling calibration
283
         case 29:                                                  // G29: Bed leveling calibration

+ 1
- 1
Marlin/src/gcode/gcode.h 파일 보기

434
     static void G27();
434
     static void G27();
435
   #endif
435
   #endif
436
 
436
 
437
-  static void G28(const bool always_home_all);
437
+  static void G28();
438
 
438
 
439
   #if HAS_LEVELING
439
   #if HAS_LEVELING
440
     #if ENABLED(G29_RETRY_AND_RECOVER)
440
     #if ENABLED(G29_RETRY_AND_RECOVER)

Loading…
취소
저장