aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc5160.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-05 17:24:10 -0400
committerKevinOConnor <kevin@koconnor.net>2019-06-10 14:18:58 -0400
commit6abe132cf0910b0c8676965a167369e9f8b66792 (patch)
tree891ad7e2d9cc5fd497806e0450d18765c5c87f30 /klippy/extras/tmc5160.py
parent6947548c1772d75ae1361f7d6d89df798831236b (diff)
downloadkutter-6abe132cf0910b0c8676965a167369e9f8b66792.tar.gz
kutter-6abe132cf0910b0c8676965a167369e9f8b66792.tar.xz
kutter-6abe132cf0910b0c8676965a167369e9f8b66792.zip
tmc2130: Transmit register initialization during connect callback
Perform the register initialization directly from TMCCommandHelper and perform it during the "connect" phase. This unifies the register setup for the TMC2130, TMC2208, TMC2660, and TMC5160. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc5160.py')
-rw-r--r--klippy/extras/tmc5160.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py
index ed061ade..37678fa0 100644
--- a/klippy/extras/tmc5160.py
+++ b/klippy/extras/tmc5160.py
@@ -320,8 +320,6 @@ class TMC5160:
self.fields.set_field("TPWMTHRS", thresh)
# TPOWERDOWN
set_config_field(config, "TPOWERDOWN", 10)
-
- cmdhelper.init_registers()
def setup_pin(self, pin_type, pin_params):
if pin_type != 'endstop' or pin_params['pin'] != 'virtual_endstop':
raise pins.error("tmc5160 virtual endstop only useful as endstop")