endstop_phase: Fix endstop_phase on trinamic drivers that aren't inverted

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-06 18:14:45 -04:00 committed by KevinOConnor
parent 0b02d7a1f2
commit 80194a7e18
4 changed files with 6 additions and 1 deletions

View file

@ -73,6 +73,7 @@ class PrinterStepper:
self.set_commanded_position = mcu_stepper.set_commanded_position
self.get_mcu_position = mcu_stepper.get_mcu_position
self.get_step_dist = mcu_stepper.get_step_dist
self.is_dir_inverted = mcu_stepper.is_dir_inverted
def get_name(self, short=False):
if short and self.name.startswith('stepper_'):
return self.name[8:]