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>
This commit is contained in:
committed by
KevinOConnor
parent
6947548c17
commit
6abe132cf0
@@ -231,9 +231,6 @@ class TMC2660:
|
||||
self.fields.set_field("RDSEL", 0) # needed for phase calculations
|
||||
self.fields.set_field("SDOFF", 0) # only step/dir mode supported
|
||||
|
||||
# Init Registers
|
||||
cmdhelper.init_registers()
|
||||
|
||||
# Register ready/printing handlers
|
||||
self.idle_current_percentage = config.getint(
|
||||
'idle_current_percent', default=100, minval=0, maxval=100)
|
||||
|
||||
Reference in New Issue
Block a user