Move M18_M84, M85 to cpp

This commit is contained in:
Scott Lahteine
2017-09-16 23:57:09 -05:00
parent a911215b0e
commit 381b17e6a9
6 changed files with 21 additions and 18 deletions

View File

@ -20,14 +20,19 @@
*
*/
#include "../gcode.h"
#include "../../Marlin.h" // for stepper_inactive_time
#include "../../module/stepper.h"
#if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTRA_LCD)
extern bool defer_return_to_status;
#include "../../feature/bedlevel/bedlevel.h"
#include "../../lcd/ultralcd.h"
#endif
/**
* M18, M84: Disable stepper motors
*/
void gcode_M18_M84() {
void GcodeSuite::M18_M84() {
if (parser.seenval('S')) {
stepper_inactive_time = parser.value_millis_from_seconds();
}

View File

@ -20,12 +20,14 @@
*
*/
#include "../gcode.h"
#include "../../Marlin.h" // for max_inactive_time
/**
* M85: Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
*/
void gcode_M85() {
void GcodeSuite::M85() {
if (parser.seen('S')) max_inactive_time = parser.value_millis_from_seconds();
}