mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
stepper: Add mcu_to_commanded_position() method
Convert stepper.get_past_commanded_position() to the more general stepper.mcu_to_commanded_position(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f2d10b5729
commit
809f1ccea6
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,8 @@ class PrinterExtruder:
|
|||
1., pressure_advance, 0.,
|
||||
start_v, cruise_v, accel)
|
||||
def find_past_position(self, print_time):
|
||||
return self.stepper.get_past_commanded_position(print_time)
|
||||
mcu_pos = self.stepper.get_past_mcu_position(print_time)
|
||||
return self.stepper.mcu_to_commanded_position(mcu_pos)
|
||||
def cmd_M104(self, gcmd, wait=False):
|
||||
# Set Extruder Temperature
|
||||
temp = gcmd.get_float('S', 0.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue