mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06:00
klippy: No need to pass printer reference to add_printer_objects()
The config reference already stores a reference to the printer object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
5cdba1fda8
commit
7d897d84d7
6 changed files with 20 additions and 18 deletions
|
@ -442,5 +442,5 @@ class ToolHead:
|
|||
accel = gcode.get_float('S', params, above=0.)
|
||||
self.max_accel = min(accel, self.config_max_accel)
|
||||
|
||||
def add_printer_objects(printer, config):
|
||||
printer.add_object('toolhead', ToolHead(config))
|
||||
def add_printer_objects(config):
|
||||
config.get_printer().add_object('toolhead', ToolHead(config))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue