mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06: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:
parent
b988596519
commit
a31c31aed4
7 changed files with 31 additions and 36 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue