Move M42 to cpp

This commit is contained in:
Scott Lahteine
2017-09-16 03:42:05 -05:00
parent 69b664b6fe
commit 10fab24e50
4 changed files with 9 additions and 7 deletions

View File

@@ -20,13 +20,17 @@
*
*/
#include "../gcode.h"
#include "../../Marlin.h" // for pin_is_protected
#include "../../inc/MarlinConfig.h"
/**
* M42: Change pin status via GCode
*
* P<pin> Pin number (LED if omitted)
* S<byte> Pin status from 0 - 255
*/
void gcode_M42() {
void GcodeSuite::M42() {
if (!parser.seenval('S')) return;
const byte pin_status = parser.value_byte();