aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-12-02 12:51:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2024-12-02 12:51:51 -0500
commit9ce631e8d1a7b739f96c360a7a4250489ae8deb8 (patch)
tree0f65a4c887ead8c75f71d1c60d5be010ab9514b9 /klippy/klippy.py
parent2165c900115a916956046c9520104503759e88dc (diff)
downloadkutter-9ce631e8d1a7b739f96c360a7a4250489ae8deb8.tar.gz
kutter-9ce631e8d1a7b739f96c360a7a4250489ae8deb8.tar.xz
kutter-9ce631e8d1a7b739f96c360a7a4250489ae8deb8.zip
klippy: Fix missing default parameter of invoke_async_shutdown()
Allow invoke_async_shutdown() to be called with just one parameter. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 75ee6887..316343cb 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -214,7 +214,7 @@ class Printer:
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):