mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 06:33:59 -06:00
tmc: add current values to get_status() (#4696)
Signed-off-by: Philipp Temminghoff <philipptemminghoff@gmail.com>
This commit is contained in:
parent
afd1058af6
commit
64e4649877
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue