mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Allow G53 to go back to native space
This commit is contained in:
parent
203d3f8f56
commit
b24099c9d0
@ -3532,15 +3532,18 @@ inline void gcode_G4() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In CNC G-code G53 is like a modifier
|
* G53: Apply native workspace to the current move
|
||||||
|
*
|
||||||
|
* In CNC G-code G53 is a modifier.
|
||||||
* It precedes a movement command (or other modifiers) on the same line.
|
* It precedes a movement command (or other modifiers) on the same line.
|
||||||
* This is the first command to use parser.chain() to make this possible.
|
* This is the first command to use parser.chain() to make this possible.
|
||||||
|
*
|
||||||
|
* Marlin also uses G53 on a line by itself to go back to native space.
|
||||||
*/
|
*/
|
||||||
inline void gcode_G53() {
|
inline void gcode_G53() {
|
||||||
// If this command has more following...
|
const int8_t _system = active_coordinate_system;
|
||||||
if (parser.chain()) {
|
active_coordinate_system = -1;
|
||||||
const int8_t _system = active_coordinate_system;
|
if (parser.chain()) { // If this command has more following...
|
||||||
active_coordinate_system = -1;
|
|
||||||
process_parsed_command();
|
process_parsed_command();
|
||||||
active_coordinate_system = _system;
|
active_coordinate_system = _system;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user