Browse Source

Restore declarations of G53-G59 (#13654)

Jamie 5 years ago
parent
commit
509dc283f2
2 changed files with 11 additions and 1 deletions
  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 View File

269
           break;
269
           break;
270
       #endif
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
       #if ENABLED(GCODE_MOTION_MODES)
282
       #if ENABLED(GCODE_MOTION_MODES)
273
         case 80: G80(); break;                                    // G80: Reset the current motion mode
283
         case 80: G80(); break;                                    // G80: Reset the current motion mode
274
       #endif
284
       #endif

+ 1
- 1
Marlin/src/gcode/geometry/G53-G59.cpp View File

59
  *
59
  *
60
  * Marlin also uses G53 on a line by itself to go back to native space.
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
   const int8_t _system = active_coordinate_system;
63
   const int8_t _system = active_coordinate_system;
64
   active_coordinate_system = -1;
64
   active_coordinate_system = -1;
65
   if (parser.chain()) { // If this command has more following...
65
   if (parser.chain()) { // If this command has more following...

Loading…
Cancel
Save