diff --git a/autotune_tmc.py b/autotune_tmc.py index dc8084d..24588fc 100644 --- a/autotune_tmc.py +++ b/autotune_tmc.py @@ -190,7 +190,8 @@ def cmd_AUTOTUNE_TMC(self, gcmd): self.tune_driver() def tune_driver(self, print_time=None): - self.run_current, _, _, _ = self.tmc_cmdhelper.current_helper.get_current() + _currents = self.tmc_cmdhelper.current_helper.get_current() + self.run_current = _currents[0] self._set_hysteresis(self.run_current) self._set_pwmfreq() self._set_sg4thrs()