Skip to content

Commit

Permalink
klippy: Fix missing default parameter of invoke_async_shutdown()
Browse files Browse the repository at this point in the history
Allow invoke_async_shutdown() to be called with just one parameter.

Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
KevinOConnor committed Dec 2, 2024
1 parent 2165c90 commit 9ce631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/klippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def invoke_shutdown(self, msg, details={}):
logging.info("Reactor garbage collection: %s",
self.reactor.get_gc_stats())
self.send_event("klippy:notify_mcu_shutdown", msg, details)
def invoke_async_shutdown(self, msg, details):
def invoke_async_shutdown(self, msg, details={}):
self.reactor.register_async_callback(
(lambda e: self.invoke_shutdown(msg, details)))
def register_event_handler(self, event, callback):
Expand Down

0 comments on commit 9ce631e

Please sign in to comment.