Move M301 to cpp

This commit is contained in:
Scott Lahteine
2017-09-17 03:07:35 -05:00
parent 4f14849675
commit 609c4eea32
3 changed files with 12 additions and 10 deletions

View File

@ -20,6 +20,13 @@
*
*/
#include "../../inc/MarlinConfig.h"
#if ENABLED(PIDTEMP)
#include "../gcode.h"
#include "../../module/temperature.h"
/**
* M301: Set PID parameters P I D (and optionally C, L)
*
@ -32,7 +39,7 @@
* C[float] Kc term
* L[float] LPQ length
*/
void gcode_M301() {
void GcodeSuite::M301() {
// multi-extruder PID patch: M301 updates or prints a single extruder's PID values
// default behaviour (omitting E parameter) is to update for extruder 0 only
@ -67,3 +74,5 @@ void gcode_M301() {
SERIAL_ERRORLN(MSG_INVALID_EXTRUDER);
}
}
#endif // PIDTEMP