diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-12 23:28:22 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-06-28 16:59:26 -0400 |
commit | 7702f0a027686ccba4d45417c79c353c00e8c712 (patch) | |
tree | b48a98efea6a4fd1b4f135b60028ade58cb14e27 /klippy/extras/tmc5160.py | |
parent | 041831f93a50426efc103a13917a7cdbef99a56e (diff) | |
download | kutter-7702f0a027686ccba4d45417c79c353c00e8c712.tar.gz kutter-7702f0a027686ccba4d45417c79c353c00e8c712.tar.xz kutter-7702f0a027686ccba4d45417c79c353c00e8c712.zip |
tmc: Add support for virtual enable pins
Add support for enabling the stepper via the communication channel.
This improves support for boards with a shared enable line.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc5160.py')
-rw-r--r-- | klippy/extras/tmc5160.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py index 637f8d39..48158e2a 100644 --- a/klippy/extras/tmc5160.py +++ b/klippy/extras/tmc5160.py @@ -291,9 +291,9 @@ class TMC5160: # Setup mcu communication self.fields = tmc.FieldHelper(Fields, SignedFields, FieldFormatters) self.mcu_tmc = tmc2130.MCU_TMC_SPI(config, Registers, self.fields) - # Allow virtual endstop to be created + # Allow virtual pins to be created diag1_pin = config.get('diag1_pin', None) - tmc.TMCEndstopHelper(config, self.mcu_tmc, diag1_pin) + tmc.TMCVirtualPinHelper(config, self.mcu_tmc, diag1_pin) # Register commands cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc) cmdhelper.setup_register_dump(ReadRegisters) |