diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-09-12 13:54:53 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-13 09:16:58 -0400 |
commit | 52156d2c418b38576a27e804eb41901b91206825 (patch) | |
tree | ed76949f76d694b0db4ede58cbb08553c1ebb78e /klippy/pins.py | |
parent | 2a6a9eb52f1a8ef61ee6f354aeee79ab9b0c4a0f (diff) | |
download | kutter-52156d2c418b38576a27e804eb41901b91206825.tar.gz kutter-52156d2c418b38576a27e804eb41901b91206825.tar.xz kutter-52156d2c418b38576a27e804eb41901b91206825.zip |
pins: Don't pass mcu_freq to update_command()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/pins.py')
-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 a9a2ec26..46266ed6 100644 --- a/klippy/pins.py +++ b/klippy/pins.py @@ -161,7 +161,7 @@ def get_pin_map(mcu, mapping_name=None): # Translate pin names in a firmware command re_pin = re.compile(r'(?P<prefix>[ _]pin=)(?P<name>[^ ]*)') -def update_command(cmd, mcu_freq, pmap): +def update_command(cmd, pmap): def pin_fixup(m): return m.group('prefix') + str(pmap[m.group('name')]) return re_pin.sub(pin_fixup, cmd) |