Move M17 to cpp

This commit is contained in:
Scott Lahteine 2017-09-16 01:14:21 -05:00
parent 33e00b6cd6
commit adca4a9b79
3 changed files with 6 additions and 5 deletions

View File

@ -357,8 +357,6 @@ void suicide() {
***************** GCode Handlers ***************** ***************** GCode Handlers *****************
**************************************************/ **************************************************/
#include "gcode/control/M17.h"
#if ENABLED(ADVANCED_PAUSE_FEATURE) #if ENABLED(ADVANCED_PAUSE_FEATURE)
// For M125, M600, M24 // For M125, M600, M24
#include "gcode/feature/pause/common.h" #include "gcode/feature/pause/common.h"

View File

@ -20,10 +20,14 @@
* *
*/ */
#include "../gcode.h"
#include "../../lcd/ultralcd.h"
#include "../../Marlin.h"
/** /**
* M17: Enable power on all stepper motors * M17: Enable power on all stepper motors
*/ */
void gcode_M17() { void GcodeSuite::M17() {
LCD_MESSAGEPGM(MSG_NO_MOVE); LCD_MESSAGEPGM(MSG_NO_MOVE);
enable_all_steppers(); enable_all_steppers();
} }

View File

@ -116,7 +116,6 @@ void GcodeSuite::dwell(millis_t time) {
// //
// Placeholders for non-migrated codes // Placeholders for non-migrated codes
// //
extern void gcode_M17();
extern void gcode_M18_M84(); extern void gcode_M18_M84();
extern void gcode_M20(); extern void gcode_M20();
extern void gcode_M21(); extern void gcode_M21();
@ -422,7 +421,7 @@ void GcodeSuite::process_next_command() {
#endif #endif
case 17: // M17: Enable all stepper motors case 17: // M17: Enable all stepper motors
gcode_M17(); M17();
break; break;
#if ENABLED(SDSUPPORT) #if ENABLED(SDSUPPORT)