diff options
author | Philipp Temminghoff <phil65@kodi.tv> | 2021-10-11 18:03:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 12:03:08 -0400 |
commit | 64e464987772059314a46d67b86aaeb51a0f3a40 (patch) | |
tree | 8760d20950b98018a031868904bd5741467ec6f8 /klippy/extras/tmc.py | |
parent | afd1058af6e80642412d1aadc18f82b099b5ab07 (diff) | |
download | kutter-64e464987772059314a46d67b86aaeb51a0f3a40.tar.gz kutter-64e464987772059314a46d67b86aaeb51a0f3a40.tar.xz kutter-64e464987772059314a46d67b86aaeb51a0f3a40.zip |
tmc: add current values to get_status() (#4696)
Signed-off-by: Philipp Temminghoff <philipptemminghoff@gmail.com>
Diffstat (limited to 'klippy/extras/tmc.py')
-rw-r--r-- | klippy/extras/tmc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py index c926df63..d45d64ac 100644 --- a/klippy/extras/tmc.py +++ b/klippy/extras/tmc.py @@ -374,8 +374,11 @@ class TMCCommandHelper: cpos = None if self.stepper is not None and self.mcu_phase_offset is not None: cpos = self.stepper.mcu_to_commanded_position(self.mcu_phase_offset) + current = self.current_helper.get_current() res = {'mcu_phase_offset': self.mcu_phase_offset, - 'phase_offset_position': cpos} + 'phase_offset_position': cpos, + 'run_current': current[0], + 'hold_current': current[1]} res.update(self.echeck_helper.get_status(eventtime)) return res # DUMP_TMC support |