mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
tmc2208: error raise fixed for rx/tx mcu check
Signed-off-by: Petri Honkala <cruwaller@gmail.com>
This commit is contained in:
parent
62fc5dc288
commit
f99002df4f
@ -105,7 +105,7 @@ class TMC2208:
|
|||||||
else:
|
else:
|
||||||
tx_pin_params = ppins.lookup_pin(tx_pin_desc)
|
tx_pin_params = ppins.lookup_pin(tx_pin_desc)
|
||||||
if rx_pin_params['chip'] is not tx_pin_params['chip']:
|
if rx_pin_params['chip'] is not tx_pin_params['chip']:
|
||||||
raise pins.error("TMC2208 rx and tx pins must be on the same mcu")
|
raise ppins.error("TMC2208 rx and tx pins must be on the same mcu")
|
||||||
self.mcu = rx_pin_params['chip']
|
self.mcu = rx_pin_params['chip']
|
||||||
self.pullup = rx_pin_params['pullup']
|
self.pullup = rx_pin_params['pullup']
|
||||||
self.rx_pin = rx_pin_params['pin']
|
self.rx_pin = rx_pin_params['pin']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user