Move M999 to cpp

2.0.x
Scott Lahteine 7 years ago
parent 1a37ebc76d
commit 927524af6b

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

@ -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
@ -32,7 +36,7 @@
* existing command buffer.
*
*/
void gcode_M999() {
void GcodeSuite::M999() {
Running = true;
lcd_reset_alert_level();

@ -116,7 +116,6 @@ void GcodeSuite::dwell(millis_t time) {
//
// Placeholders for non-migrated codes
//
extern void gcode_M999();
extern void gcode_T(uint8_t tmp_extruder);
#if ENABLED(M100_FREE_MEMORY_WATCHER)
@ -687,9 +686,7 @@ void GcodeSuite::process_next_command() {
case 869: M869(); break; // M869: Report axis error
#endif
case 999: // M999: Restart after being Stopped
gcode_M999();
break;
case 999: M999(); break; // M999: Restart after being Stopped
}
break;

Loading…
Cancel
Save