Move M201 to cpp

This commit is contained in:
Scott Lahteine 2017-09-17 01:33:25 -05:00
parent 92c15f5578
commit 5e63efc1d9
3 changed files with 7 additions and 7 deletions

View file

@ -355,8 +355,6 @@ bool pin_is_protected(const int8_t pin) {
return false;
}
#include "gcode/config/M201.h"
#if 0 // Not used for Sprinter/grbl gen6
#include "gcode/config/M202.h"
#endif

View file

@ -20,12 +20,15 @@
*
*/
#include "../gcode.h"
#include "../../module/planner.h"
/**
* M201: Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
*
* With multiple extruders use T to specify which one.
*/
void gcode_M201() {
void GcodeSuite::M201() {
GET_TARGET_EXTRUDER();

View file

@ -119,7 +119,6 @@ void GcodeSuite::dwell(millis_t time) {
extern void gcode_M163();
extern void gcode_M164();
extern void gcode_M165();
extern void gcode_M201();
extern void gcode_M203();
extern void gcode_M204();
extern void gcode_M205();
@ -530,9 +529,9 @@ void GcodeSuite::process_next_command() {
case 200: // M200: Set filament diameter, E to cubic units
M200();
break;
case 201: // M201: Set max acceleration for print moves (units/s^2)
gcode_M201();
break;
case 201: M201(); break; // M201: Set max acceleration for print moves (units/s^2)
#if 0 // Not used for Sprinter/grbl gen6
case 202: // M202
gcode_M202();