Browse Source

Restore declarations of G53-G59 (#13654)

pull/1/head
Jamie 5 years ago
committed by Scott Lahteine
parent
commit
509dc283f2
  1. 10
      Marlin/src/gcode/gcode.cpp
  2. 2
      Marlin/src/gcode/geometry/G53-G59.cpp

10
Marlin/src/gcode/gcode.cpp

@ -269,6 +269,16 @@ void GcodeSuite::process_parsed_command(
break;
#endif
#if ENABLED(CNC_COORDINATE_SYSTEMS)
case 53: G53(); break;
case 54: G54(); break;
case 55: G55(); break;
case 56: G56(); break;
case 57: G57(); break;
case 58: G58(); break;
case 59: G59(); break;
#endif
#if ENABLED(GCODE_MOTION_MODES)
case 80: G80(); break; // G80: Reset the current motion mode
#endif

2
Marlin/src/gcode/geometry/G53-G59.cpp

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

Loading…
Cancel
Save