diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-02-20 20:18:40 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-02-27 10:39:47 -0500 |
commit | f035de264f7469127dbc6f7abf6f173f2618e1ca (patch) | |
tree | ea00c9286c0d97ceb2aa516a6bf4b0ec41f1495d /klippy/extras/tmc2130.py | |
parent | 53b10d3ae7e4bdbcb82f20971600f56b9e01dfeb (diff) | |
download | kutter-f035de264f7469127dbc6f7abf6f173f2618e1ca.tar.gz kutter-f035de264f7469127dbc6f7abf6f173f2618e1ca.tar.xz kutter-f035de264f7469127dbc6f7abf6f173f2618e1ca.zip |
tmc: Add support for periodic checking of driver status
Check the status of all Trinamic stepper motor drivers once a second.
If the driver reports an error then invoke a shutdown. Also log any
serious warnings.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc2130.py')
-rw-r--r-- | klippy/extras/tmc2130.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/tmc2130.py b/klippy/extras/tmc2130.py index 42b9144a..e827b32a 100644 --- a/klippy/extras/tmc2130.py +++ b/klippy/extras/tmc2130.py @@ -241,7 +241,8 @@ 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) + cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper, + clear_gstat=False) cmdhelper.setup_register_dump(ReadRegisters) # Setup basic register values mh = tmc.TMCMicrostepHelper(config, self.mcu_tmc) |