Move M201 to cpp
This commit is contained in:
parent
92c15f5578
commit
5e63efc1d9
|
@ -355,8 +355,6 @@ bool pin_is_protected(const int8_t pin) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "gcode/config/M201.h"
|
|
||||||
|
|
||||||
#if 0 // Not used for Sprinter/grbl gen6
|
#if 0 // Not used for Sprinter/grbl gen6
|
||||||
#include "gcode/config/M202.h"
|
#include "gcode/config/M202.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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)
|
* M201: Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
|
||||||
*
|
*
|
||||||
* With multiple extruders use T to specify which one.
|
* With multiple extruders use T to specify which one.
|
||||||
*/
|
*/
|
||||||
void gcode_M201() {
|
void GcodeSuite::M201() {
|
||||||
|
|
||||||
GET_TARGET_EXTRUDER();
|
GET_TARGET_EXTRUDER();
|
||||||
|
|
|
@ -119,7 +119,6 @@ void GcodeSuite::dwell(millis_t time) {
|
||||||
extern void gcode_M163();
|
extern void gcode_M163();
|
||||||
extern void gcode_M164();
|
extern void gcode_M164();
|
||||||
extern void gcode_M165();
|
extern void gcode_M165();
|
||||||
extern void gcode_M201();
|
|
||||||
extern void gcode_M203();
|
extern void gcode_M203();
|
||||||
extern void gcode_M204();
|
extern void gcode_M204();
|
||||||
extern void gcode_M205();
|
extern void gcode_M205();
|
||||||
|
@ -530,9 +529,9 @@ void GcodeSuite::process_next_command() {
|
||||||
case 200: // M200: Set filament diameter, E to cubic units
|
case 200: // M200: Set filament diameter, E to cubic units
|
||||||
M200();
|
M200();
|
||||||
break;
|
break;
|
||||||
case 201: // M201: Set max acceleration for print moves (units/s^2)
|
|
||||||
gcode_M201();
|
case 201: M201(); break; // M201: Set max acceleration for print moves (units/s^2)
|
||||||
break;
|
|
||||||
#if 0 // Not used for Sprinter/grbl gen6
|
#if 0 // Not used for Sprinter/grbl gen6
|
||||||
case 202: // M202
|
case 202: // M202
|
||||||
gcode_M202();
|
gcode_M202();
|
||||||
|
|
Loading…
Reference in a new issue