Move M226 to cpp

This commit is contained in:
Scott Lahteine
2017-09-17 02:43:36 -05:00
parent 0e319104c2
commit 3e761696a0
3 changed files with 6 additions and 7 deletions

View File

@ -20,10 +20,14 @@
*
*/
#include "../gcode.h"
#include "../../Marlin.h" // for pin_is_protected and idle()
#include "../../module/stepper.h"
/**
* M226: Wait until the specified pin reaches the state required (M226 P<pin> S<state>)
*/
void gcode_M226() {
void GcodeSuite::M226() {
if (parser.seen('P')) {
const int pin_number = parser.value_int(),
pin_state = parser.intval('S', -1); // required pin state - default is inverted