Skip to content

Commit

Permalink
stepper: endstop_pin should be optional (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz authored Feb 3, 2024
1 parent e37eb82 commit 7758ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def __init__(
self.position_endstop = config.getfloat(
"position_endstop", default_position_endstop
)
endstop_pin = config.get("endstop_pin")
endstop_pin = config.get("endstop_pin", None)
# check for ":virtual_endstop" to make sure we don't detect ":z_virtual_endstop"
endstop_is_virtual = (
endstop_pin is not None and ":virtual_endstop" in endstop_pin
Expand Down

0 comments on commit 7758ac9

Please sign in to comment.