Browse Source

Implement G42, after all

Scott Lahteine 3 years ago
parent
commit
6225870aa9
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      Marlin/src/gcode/gcode.cpp
  2. 1
    1
      Marlin/src/gcode/gcode_d.cpp

+ 4
- 0
Marlin/src/gcode/gcode.cpp View File

@@ -364,6 +364,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
364 364
           break;
365 365
       #endif
366 366
 
367
+      #if HAS_MESH
368
+        case 42: G42(); break;                                    // G42: Coordinated move to a mesh point
369
+      #endif
370
+
367 371
       #if ENABLED(CNC_COORDINATE_SYSTEMS)
368 372
         case 53: G53(); break;                                    // G53: (prefix) Apply native workspace
369 373
         case 54: G54(); break;                                    // G54: Switch to Workspace 1

+ 1
- 1
Marlin/src/gcode/gcode_d.cpp View File

@@ -165,7 +165,7 @@
165 165
 
166 166
       case 6: // D6 Check delay loop accuracy
167 167
         dump_delay_accuracy_check();
168
-      break;
168
+        break;
169 169
 
170 170
       case 100: { // D100 Disable heaters and attempt a hard hang (Watchdog Test)
171 171
         SERIAL_ECHOLNPGM("Disabling heaters and attempting to trigger Watchdog");

Loading…
Cancel
Save