Move M999 to cpp

This commit is contained in:
Scott Lahteine 2017-09-18 00:52:06 -05:00
parent 1a37ebc76d
commit 927524af6b
3 changed files with 7 additions and 8 deletions

View File

@ -320,8 +320,6 @@ void quickstop_stepper() {
SYNC_PLAN_POSITION_KINEMATIC(); SYNC_PLAN_POSITION_KINEMATIC();
} }
#include "gcode/control/M999.h"
#include "gcode/control/T.h" #include "gcode/control/T.h"
#if ENABLED(USE_CONTROLLER_FAN) #if ENABLED(USE_CONTROLLER_FAN)

View File

@ -20,7 +20,11 @@
* *
*/ */
#include "../queue.h" #include "../gcode.h"
#include "../../lcd/ultralcd.h" // for lcd_reset_alert_level
#include "../../Marlin.h" // for Running
#include "../queue.h" // for flush_and_request_resend
/** /**
* M999: Restart after being stopped * M999: Restart after being stopped
@ -32,7 +36,7 @@
* existing command buffer. * existing command buffer.
* *
*/ */
void gcode_M999() { void GcodeSuite::M999() {
Running = true; Running = true;
lcd_reset_alert_level(); lcd_reset_alert_level();

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_M999();
extern void gcode_T(uint8_t tmp_extruder); extern void gcode_T(uint8_t tmp_extruder);
#if ENABLED(M100_FREE_MEMORY_WATCHER) #if ENABLED(M100_FREE_MEMORY_WATCHER)
@ -687,9 +686,7 @@ void GcodeSuite::process_next_command() {
case 869: M869(); break; // M869: Report axis error case 869: M869(); break; // M869: Report axis error
#endif #endif
case 999: // M999: Restart after being Stopped case 999: M999(); break; // M999: Restart after being Stopped
gcode_M999();
break;
} }
break; break;