Move M119-M121 to cpp
This commit is contained in:
@ -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); }
|
Reference in New Issue
Block a user