mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 05:54:05 -06:00
gcode: Split G0/G1 command handling to new gcode_move class
Split up the main GCodeParser class into GCodeDispatch and GCodeMove classes. The GCodeMove class is now available using the "gcode_move" printer object name. This split simplifies the gcode.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
cd7c1b8e68
commit
4c5e93d51d
15 changed files with 219 additions and 194 deletions
|
@ -32,14 +32,14 @@ class HomingOverride:
|
|||
if no_axis:
|
||||
override = True
|
||||
else:
|
||||
# check if we home an axsis which needs the override
|
||||
# check if we home an axis which needs the override
|
||||
override = False
|
||||
for axis in self.axes:
|
||||
if gcmd.get(axis, None) is not None:
|
||||
override = True
|
||||
|
||||
if not override:
|
||||
self.gcode.cmd_G28(gcmd)
|
||||
self.prev_G28(gcmd)
|
||||
return
|
||||
|
||||
# Calculate forced position (if configured)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue