Skip to content

Commit

Permalink
Merge pull request #77 from rogerlz/dkcurrents
Browse files Browse the repository at this point in the history
allow get_current() to return more values
  • Loading branch information
andrewmcgr authored Oct 18, 2023
2 parents 97bae29 + 03d1a5c commit 12fba08
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 12fba08

Please sign in to comment.