Browse Source

Move M201 to cpp

pull/1/head
Scott Lahteine 7 years ago
parent
commit
5e63efc1d9
  1. 2
      Marlin/src/Marlin.cpp
  2. 5
      Marlin/src/gcode/config/M201.cpp
  3. 7
      Marlin/src/gcode/gcode.cpp

2
Marlin/src/Marlin.cpp

@ -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

5
Marlin/src/gcode/config/M201.h → Marlin/src/gcode/config/M201.cpp

@ -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();

7
Marlin/src/gcode/gcode.cpp

@ -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();

Loading…
Cancel
Save