Restore declarations of G53-G59 (#13654)

This commit is contained in:
Jamie 2019-04-11 13:51:05 -05:00 committed by Scott Lahteine
parent 2adc37becc
commit 509dc283f2
2 changed files with 11 additions and 1 deletions

View File

@ -269,6 +269,16 @@ void GcodeSuite::process_parsed_command(
break; break;
#endif #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) #if ENABLED(GCODE_MOTION_MODES)
case 80: G80(); break; // G80: Reset the current motion mode case 80: G80(); break; // G80: Reset the current motion mode
#endif #endif

View File

@ -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. * 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; const int8_t _system = active_coordinate_system;
active_coordinate_system = -1; active_coordinate_system = -1;
if (parser.chain()) { // If this command has more following... if (parser.chain()) { // If this command has more following...