tmc2208: error raise fixed for rx/tx mcu check

Signed-off-by: Petri Honkala <cruwaller@gmail.com>
This commit is contained in:
Petri Honkala 2018-12-27 09:38:09 +02:00 committed by KevinOConnor
parent 62fc5dc288
commit f99002df4f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class TMC2208:
else:
tx_pin_params = ppins.lookup_pin(tx_pin_desc)
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.pullup = rx_pin_params['pullup']
self.rx_pin = rx_pin_params['pin']