From 03d1a5c078135e61e3057138d739431408ebccd8 Mon Sep 17 00:00:00 2001 From: Rogerio Goncalves Date: Wed, 18 Oct 2023 16:31:14 +0100 Subject: [PATCH] allow get_current() to return more values --- autotune_tmc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()