Move G17-G19 to cpp

This commit is contained in:
Scott Lahteine
2017-09-15 23:08:48 -05:00
parent 94d9def81c
commit 9b4aa5ea8b
6 changed files with 42 additions and 31 deletions

View File

@ -48,6 +48,10 @@ bool GcodeSuite::axis_relative_modes[] = AXIS_RELATIVE_MODES;
uint8_t GcodeSuite::host_keepalive_interval = DEFAULT_KEEPALIVE_INTERVAL;
#endif
#if ENABLED(CNC_WORKSPACE_PLANES)
GcodeSuite::WorkspacePlane GcodeSuite::workspace_plane = PLANE_XY;
#endif
/**
* Set target_extruder from the T parameter or the active_extruder
*
@ -112,9 +116,6 @@ void GcodeSuite::dwell(millis_t time) {
//
// Placeholders for non-migrated codes
//
extern void gcode_G17();
extern void gcode_G18();
extern void gcode_G19();
extern void gcode_G20();
extern void gcode_G21();
extern void gcode_G27();
@ -318,13 +319,13 @@ void GcodeSuite::process_next_command() {
#if ENABLED(CNC_WORKSPACE_PLANES)
case 17: // G17: Select Plane XY
gcode_G17();
G17();
break;
case 18: // G18: Select Plane ZX
gcode_G18();
G18();
break;
case 19: // G19: Select Plane YZ
gcode_G19();
G19();
break;
#endif // CNC_WORKSPACE_PLANES