mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-15 09:46:04 +01:00
mcu: Enhance itersolve stepper kinematics allocation
Allocate the stepper_kinematics directly in mcu.py - that way the kinematic classes don't have to interact with the chelper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -51,8 +51,7 @@ class PrinterExtruder:
|
||||
ffi_main, ffi_lib = chelper.get_ffi()
|
||||
self.cmove = ffi_main.gc(ffi_lib.move_alloc(), ffi_lib.free)
|
||||
self.extruder_move_fill = ffi_lib.extruder_move_fill
|
||||
sk = ffi_main.gc(ffi_lib.extruder_stepper_alloc(), ffi_lib.free)
|
||||
self.stepper.setup_itersolve(sk)
|
||||
self.stepper.setup_itersolve('extruder_stepper_alloc')
|
||||
# Setup SET_PRESSURE_ADVANCE command
|
||||
gcode = self.printer.lookup_object('gcode')
|
||||
if self.name in ('extruder', 'extruder0'):
|
||||
|
||||
Reference in New Issue
Block a user