Move G92 to cpp
This commit is contained in:
parent
931aa79d85
commit
04376975ce
|
@ -357,8 +357,6 @@ void suicide() {
|
|||
***************** GCode Handlers *****************
|
||||
**************************************************/
|
||||
|
||||
#include "gcode/geometry/G92.h"
|
||||
|
||||
#if HAS_RESUME_CONTINUE
|
||||
#include "gcode/lcd/M0_M1.h"
|
||||
#endif
|
||||
|
|
|
@ -116,7 +116,6 @@ void GcodeSuite::dwell(millis_t time) {
|
|||
//
|
||||
// Placeholders for non-migrated codes
|
||||
//
|
||||
extern void gcode_G92();
|
||||
extern void gcode_M0_M1();
|
||||
extern void gcode_M3_M4(bool is_M3);
|
||||
extern void gcode_M5();
|
||||
|
@ -394,8 +393,8 @@ void GcodeSuite::process_next_command() {
|
|||
relative_mode = true;
|
||||
break;
|
||||
|
||||
case 92: // G92
|
||||
gcode_G92();
|
||||
case 92: // G92 - Set current axis position(s)
|
||||
G92();
|
||||
break;
|
||||
|
||||
#if HAS_MESH
|
||||
|
|
|
@ -20,10 +20,18 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "../gcode.h"
|
||||
#include "../../module/motion.h"
|
||||
#include "../../module/stepper.h"
|
||||
|
||||
#if ENABLED(I2C_POSITION_ENCODERS)
|
||||
#include "../../feature/I2CPositionEncoder.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* G92: Set current position to given X Y Z E
|
||||
*/
|
||||
void gcode_G92() {
|
||||
void GcodeSuite::G92() {
|
||||
bool didXYZ = false,
|
||||
didE = parser.seenval('E');
|
||||
|
Loading…
Reference in a new issue