Move M42 to cpp
This commit is contained in:
@ -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();
|
||||
|
@ -117,7 +117,6 @@ void GcodeSuite::dwell(millis_t time) {
|
||||
// Placeholders for non-migrated codes
|
||||
//
|
||||
extern void gcode_M18_M84();
|
||||
extern void gcode_M42();
|
||||
extern void gcode_M43();
|
||||
extern void gcode_M48();
|
||||
extern void gcode_M75();
|
||||
@ -433,8 +432,7 @@ void GcodeSuite::process_next_command() {
|
||||
|
||||
case 31: M31(); break; // M31: Report time since the start of SD print or last M109
|
||||
|
||||
case 42: // M42: Change pin state
|
||||
gcode_M42(); break;
|
||||
case 42: M42(); break; // M42: Change pin state
|
||||
|
||||
#if ENABLED(PINS_DEBUGGING)
|
||||
case 43: // M43: Read pin state
|
||||
|
Reference in New Issue
Block a user