Skip to content

Commit

Permalink
allow get_current() to return more values
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed Oct 18, 2023
1 parent 97bae29 commit 03d1a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autotune_tmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 03d1a5c

Please sign in to comment.