diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-30 14:05:27 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-30 14:05:27 -0400 |
commit | 53b718a62128cda3858182a9456b73db79389816 (patch) | |
tree | 7b526297a5546949de8a6d2841305063ba15cf4d | |
parent | 0cbfcfd3d1bef82f617bcf6e8aeed6c7708893a7 (diff) | |
download | kutter-53b718a62128cda3858182a9456b73db79389816.tar.gz kutter-53b718a62128cda3858182a9456b73db79389816.tar.xz kutter-53b718a62128cda3858182a9456b73db79389816.zip |
pins: Strip pin names before trying to parse them
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/pins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/pins.py b/klippy/pins.py index bfffe98e..eec0df84 100644 --- a/klippy/pins.py +++ b/klippy/pins.py @@ -201,7 +201,7 @@ class PrinterPins: def lookup_pin(self, pin_type, pin_desc, share_type=None): can_invert = pin_type in ['stepper', 'endstop', 'digital_out', 'pwm'] can_pullup = pin_type == 'endstop' - desc = pin_desc + desc = pin_desc.strip() pullup = invert = 0 if can_pullup and desc.startswith('^'): pullup = 1 |