diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-12-30 18:12:07 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-02 17:37:39 -0500 |
commit | 1be24b8fc7a801d442eea6e2dd42ee6a7230ba37 (patch) | |
tree | 7ca57f181f049ffaace8bb1fe3895f8884207035 /klippy/extras | |
parent | 68ebde0d86b8952803400b1245eb220806175084 (diff) | |
download | kutter-1be24b8fc7a801d442eea6e2dd42ee6a7230ba37.tar.gz kutter-1be24b8fc7a801d442eea6e2dd42ee6a7230ba37.tar.xz kutter-1be24b8fc7a801d442eea6e2dd42ee6a7230ba37.zip |
bus: Don't raise a "duplicate pin" warning on None pins
If "None" is used for an spi cs pin, then it should not reserve "None"
for other uses.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/bus.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/extras/bus.py b/klippy/extras/bus.py index c7e270ca..9721a591 100644 --- a/klippy/extras/bus.py +++ b/klippy/extras/bus.py @@ -62,6 +62,7 @@ def MCU_SPI_from_config(config, mode, pin_option="cs_pin", cs_pin_params = ppins.lookup_pin(cs_pin) pin = cs_pin_params['pin'] if pin == 'None': + ppins.reset_pin_sharing(cs_pin_params) pin = None # Load bus parameters speed = config.getint('spi_speed', default_speed, minval=100000) |