Move M119-M121 to cpp

This commit is contained in:
Scott Lahteine
2017-09-17 00:46:24 -05:00
parent 379f16558e
commit eef4a54778
4 changed files with 16 additions and 27 deletions

View File

@ -20,20 +20,15 @@
*
*/
#include "../gcode.h"
#include "../../module/endstops.h"
/**
* M120: Enable endstops and set non-homing endstop state to "enabled"
*/
void gcode_M120() {
endstops.enable_globally(true);
}
void GcodeSuite::M120() { endstops.enable_globally(true); }
/**
* M121: Disable endstops and set non-homing endstop state to "disabled"
*/
void gcode_M121() {
endstops.enable_globally(false);
}
void GcodeSuite::M121() { endstops.enable_globally(false); }