Move M108, M112, M410 to cpp

This commit is contained in:
Scott Lahteine
2017-09-16 13:24:32 -05:00
parent df0432c7c8
commit 5b3e49babd
6 changed files with 35 additions and 33 deletions

View File

@ -20,11 +20,20 @@
*
*/
#include "../../inc/MarlinConfig.h"
#if DISABLED(EMERGENCY_PARSER)
#include "../gcode.h"
#include "../../Marlin.h" // for wait_for_heatup
/**
* M108: Stop the waiting for heaters in M109, M190, M303. Does not affect the target temperature.
*/
void gcode_M108() {
void GcodeSuite::M108() {
wait_for_heatup = false;
}
#endif // !EMERGENCY_PARSER

View File

@ -20,11 +20,20 @@
*
*/
#include "../../inc/MarlinConfig.h"
#if DISABLED(EMERGENCY_PARSER)
#include "../gcode.h"
#include "../../Marlin.h" // for kill
/**
* M112: Emergency Stop
*/
void gcode_M112() {
void GcodeSuite::M112() {
kill(PSTR(MSG_KILLED));
}
#endif // !EMERGENCY_PARSER

View File

@ -20,14 +20,23 @@
*
*/
#include "../../inc/MarlinConfig.h"
#if DISABLED(EMERGENCY_PARSER)
#include "../gcode.h"
#include "../../Marlin.h" // for quickstop_stepper
/**
* M410: Quickstop - Abort all planned moves
*
* This will stop the carriages mid-move, so most likely they
* will be out of sync with the stepper position after this.
*/
void gcode_M410() {
void GcodeSuite::M410() {
quickstop_stepper();
}
#endif // !EMERGENCY_PARSER