From 22753f3b389e3f21a6047bac70abc42b6cf4a7dc Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 15 Mar 2021 13:48:58 -0400 Subject: [PATCH] tmc: Only check for tmc2130 reset via CS_ACTUAL if IHOLD > 0 Signed-off-by: Kevin O'Connor --- klippy/extras/tmc.py | 3 +++ 1 file changed, 3 insertions(+) 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: