Skip to content

Commit

Permalink
remove dumb printer usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bwnance authored Nov 2, 2023
1 parent 4987e8a commit 573c85b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions klippy/extras/print_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

class PrintStats:
def __init__(self, config):
printer = self.printer = config.get_printer()
self.gcode_move = printer.load_object(config, "gcode_move")
self.reactor = printer.get_reactor()
self.printer = config.get_printer()
self.gcode_move = self.printer.load_object(config, "gcode_move")
self.reactor = self.printer.get_reactor()
self.reset()
# Register commands
self.gcode = printer.lookup_object("gcode")
self.gcode = self.printer.lookup_object("gcode")
self.gcode.register_command(
"SET_PRINT_STATS_INFO",
self.cmd_SET_PRINT_STATS_INFO,
Expand Down

0 comments on commit 573c85b

Please sign in to comment.