diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-05-13 13:53:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-05-13 13:53:17 -0400 |
commit | 82684780060d5008373457dc9140fa60f3b11847 (patch) | |
tree | 607795b0f8a2d6e869fdd0f3404c94d039948f73 | |
parent | c14118e9c6e3b13ae2d443b58f8fc17dc7d31ebd (diff) | |
download | kutter-82684780060d5008373457dc9140fa60f3b11847.tar.gz kutter-82684780060d5008373457dc9140fa60f3b11847.tar.xz kutter-82684780060d5008373457dc9140fa60f3b11847.zip |
homing: Fix bug in multi_complete()
Reported by @skrogh.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/homing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/homing.py b/klippy/extras/homing.py index ff20a8e3..634ad81b 100644 --- a/klippy/extras/homing.py +++ b/klippy/extras/homing.py @@ -18,7 +18,8 @@ def multi_complete(printer, completions): cp = reactor.register_callback(lambda e: [c.wait() for c in completions]) # If any completion indicates an error, then exit main completion early for c in completions: - reactor.register_callback(lambda e: cp.complete(1) if c.wait() else 0) + reactor.register_callback( + lambda e, c=c: cp.complete(1) if c.wait() else 0) return cp # Tracking of stepper positions during a homing/probing move |