Move M400 to cpp
This commit is contained in:
parent
4a220a8b79
commit
0589884d26
3 changed files with 5 additions and 7 deletions
|
@ -352,8 +352,6 @@ bool pin_is_protected(const int8_t pin) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "gcode/control/M400.h"
|
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE
|
||||||
#include "gcode/probe/M401_M402.h"
|
#include "gcode/probe/M401_M402.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,10 +20,13 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "../gcode.h"
|
||||||
|
#include "../../module/stepper.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M400: Finish all moves
|
* M400: Finish all moves
|
||||||
*/
|
*/
|
||||||
void gcode_M400() {
|
void GcodeSuite::M400() {
|
||||||
|
|
||||||
stepper.synchronize();
|
stepper.synchronize();
|
||||||
|
|
|
@ -122,7 +122,6 @@ extern void gcode_M165();
|
||||||
extern void gcode_M350();
|
extern void gcode_M350();
|
||||||
extern void gcode_M351();
|
extern void gcode_M351();
|
||||||
extern void gcode_M355();
|
extern void gcode_M355();
|
||||||
extern void gcode_M400();
|
|
||||||
extern void gcode_M401();
|
extern void gcode_M401();
|
||||||
extern void gcode_M402();
|
extern void gcode_M402();
|
||||||
extern void gcode_M428();
|
extern void gcode_M428();
|
||||||
|
@ -599,9 +598,7 @@ void GcodeSuite::process_next_command() {
|
||||||
case 381: M381(); break; // M381: Disable all solenoids
|
case 381: M381(); break; // M381: Disable all solenoids
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case 400: // M400: Finish all moves
|
case 400: M400(); break; // M400: Finish all moves
|
||||||
gcode_M400();
|
|
||||||
break;
|
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE
|
||||||
case 401: // M401: Deploy probe
|
case 401: // M401: Deploy probe
|
||||||
|
|
Reference in a new issue