Skip to content

Commit

Permalink
Merge pull request #40 from jpcurti/39-move-axis-not-working-causes-k…
Browse files Browse the repository at this point in the history
…lipper-to-crash

Printer data now gets all necessary values at least once at startup
  • Loading branch information
jpcurti authored Jun 2, 2024
2 parents 20ec03a + bf50bf6 commit 96cf8d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions klippy/extras/e3v3se_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ def _screen_init(self, eventtime):
return self.reactor.NEVER

def handle_ready(self):
self.pd.handle_ready()
self.reactor.register_timer(
self._reset_screen, self.reactor.monotonic())

Expand Down
4 changes: 4 additions & 0 deletions klippy/extras/printerInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def __init__(self, config):
self.gcode = self.printer.lookup_object("gcode")
self.fl = []
self.status = None

def handle_ready(self):
self.update_variable()
self.get_additional_values()


def get_additional_values(self):
Expand Down

0 comments on commit 96cf8d0

Please sign in to comment.