Quellcode durchsuchen

Restore declarations of G53-G59 (#13654)

Jamie vor 5 Jahren
Ursprung
Commit
509dc283f2
2 geänderte Dateien mit 11 neuen und 1 gelöschten Zeilen
  1. 10
    0
      Marlin/src/gcode/gcode.cpp
  2. 1
    1
      Marlin/src/gcode/geometry/G53-G59.cpp

+ 10
- 0
Marlin/src/gcode/gcode.cpp Datei anzeigen

@@ -269,6 +269,16 @@ void GcodeSuite::process_parsed_command(
269 269
           break;
270 270
       #endif
271 271
 
272
+      #if ENABLED(CNC_COORDINATE_SYSTEMS)
273
+        case 53: G53(); break;
274
+        case 54: G54(); break;
275
+        case 55: G55(); break;
276
+        case 56: G56(); break;
277
+        case 57: G57(); break;
278
+        case 58: G58(); break;
279
+        case 59: G59(); break;
280
+      #endif
281
+      
272 282
       #if ENABLED(GCODE_MOTION_MODES)
273 283
         case 80: G80(); break;                                    // G80: Reset the current motion mode
274 284
       #endif

+ 1
- 1
Marlin/src/gcode/geometry/G53-G59.cpp Datei anzeigen

@@ -59,7 +59,7 @@ bool GcodeSuite::select_coordinate_system(const int8_t _new) {
59 59
  *
60 60
  * Marlin also uses G53 on a line by itself to go back to native space.
61 61
  */
62
-inline void GcodeSuite::G53() {
62
+void GcodeSuite::G53() {
63 63
   const int8_t _system = active_coordinate_system;
64 64
   active_coordinate_system = -1;
65 65
   if (parser.chain()) { // If this command has more following...

Laden…
Abbrechen
Speichern