Move M400 to cpp

This commit is contained in:
Scott Lahteine 2017-09-17 03:53:36 -05:00
parent 4a220a8b79
commit 0589884d26
3 changed files with 5 additions and 7 deletions

View file

@ -352,8 +352,6 @@ bool pin_is_protected(const int8_t pin) {
return false;
}
#include "gcode/control/M400.h"
#if HAS_BED_PROBE
#include "gcode/probe/M401_M402.h"
#endif

View file

@ -20,10 +20,13 @@
*
*/
#include "../gcode.h"
#include "../../module/stepper.h"
/**
* M400: Finish all moves
*/
void gcode_M400() {
void GcodeSuite::M400() {
stepper.synchronize();

View file

@ -122,7 +122,6 @@ extern void gcode_M165();
extern void gcode_M350();
extern void gcode_M351();
extern void gcode_M355();
extern void gcode_M400();
extern void gcode_M401();
extern void gcode_M402();
extern void gcode_M428();
@ -599,9 +598,7 @@ void GcodeSuite::process_next_command() {
case 381: M381(); break; // M381: Disable all solenoids
#endif
case 400: // M400: Finish all moves
gcode_M400();
break;
case 400: M400(); break; // M400: Finish all moves
#if HAS_BED_PROBE
case 401: // M401: Deploy probe