diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-03-15 13:48:58 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-03-15 13:48:58 -0400 |
commit | 22753f3b389e3f21a6047bac70abc42b6cf4a7dc (patch) | |
tree | 4a3cd2a07fb4f5b7db55998c07e49470982e9529 /klippy/extras | |
parent | b4437f8eeeaddf60f893ceaeaf4d9ed06d57eeae (diff) | |
download | kutter-22753f3b389e3f21a6047bac70abc42b6cf4a7dc.tar.gz kutter-22753f3b389e3f21a6047bac70abc42b6cf4a7dc.tar.xz kutter-22753f3b389e3f21a6047bac70abc42b6cf4a7dc.zip |
tmc: Only check for tmc2130 reset via CS_ACTUAL if IHOLD > 0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/tmc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py index dd28fa68..449fae6e 100644 --- a/klippy/extras/tmc.py +++ b/klippy/extras/tmc.py @@ -140,6 +140,9 @@ class TMCErrorCheck: irun = self.fields.get_field(self.irun_field) if self.check_timer is None or irun < 4: break + if (self.irun_field == "IRUN" + and not self.fields.get_field("IHOLD")): + break # CS_ACTUAL field of zero - indicates a driver reset count += 1 if count >= 3: |