Move M304 to cpp

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

View File

@@ -20,7 +20,14 @@
*
*/
void gcode_M304() {
#include "../../inc/MarlinConfig.h"
#if ENABLED(PIDTEMPBED)
#include "../gcode.h"
#include "../../module/temperature.h"
void GcodeSuite::M304() {
if (parser.seen('P')) thermalManager.bedKp = parser.value_float();
if (parser.seen('I')) thermalManager.bedKi = scalePID_i(parser.value_float());
if (parser.seen('D')) thermalManager.bedKd = scalePID_d(parser.value_float());
@@ -32,3 +39,5 @@ void gcode_M304() {
SERIAL_ECHOPAIR(" i:", unscalePID_i(thermalManager.bedKi));
SERIAL_ECHOLNPAIR(" d:", unscalePID_d(thermalManager.bedKd));
}
#endif // PIDTEMPBED