Move M108, M112, M410 to cpp
This commit is contained in:
		@@ -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
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user