diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py index 866fe53f5..45fd84fca 100644 --- a/klippy/extras/tmc5160.py +++ b/klippy/extras/tmc5160.py @@ -302,7 +302,7 @@ class TMC5160CurrentHelper: def _calc_current(self, run_current, hold_current): gscaler = self._calc_globalscaler(run_current) irun = self._calc_current_bits(run_current) - ihold = int(min((hold_current/run_current)*irun), irun) + ihold = int(min((hold_current / run_current) * irun, irun)) return gscaler, irun, ihold def _calc_current_from_field(self, field_name): globalscaler = self.fields.get_field("globalscaler")