tmc: Move clear_gstat check for tmc2130 to within TMCErrorCheck class

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-15 00:19:57 -04:00
parent 88d0af3da3
commit d184d9fd91
2 changed files with 8 additions and 7 deletions

View file

@ -257,8 +257,7 @@ class TMC2130:
tmc.TMCVirtualPinHelper(config, self.mcu_tmc)
# Register commands
current_helper = TMCCurrentHelper(config, self.mcu_tmc)
cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper,
clear_gstat=False)
cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper)
cmdhelper.setup_register_dump(ReadRegisters)
# Setup basic register values
mh = tmc.TMCMicrostepHelper(config, self.mcu_tmc)