Move G27 to cpp
This commit is contained in:
@ -20,11 +20,22 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "../../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(NOZZLE_PARK_FEATURE)
|
||||
|
||||
#include "../../gcode.h"
|
||||
#include "../../../libs/nozzle.h"
|
||||
#include "../../../module/motion.h"
|
||||
|
||||
/**
|
||||
* G27: Park the nozzle
|
||||
*/
|
||||
void gcode_G27() {
|
||||
void GcodeSuite::G27() {
|
||||
// Don't allow nozzle parking without homing first
|
||||
if (axis_unhomed_error()) return;
|
||||
Nozzle::park(parser.ushortval('P'));
|
||||
}
|
||||
|
||||
#endif // NOZZLE_PARK_FEATURE
|
Reference in New Issue
Block a user