mcu: convert stepper, endstop, and digital_out to take mcu_time

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-08-24 16:42:25 -04:00
parent 11ecac626d
commit e52113a319
5 changed files with 79 additions and 86 deletions

View File

@@ -47,8 +47,7 @@ class Homing:
# Start homing and issue move
print_time = self.toolhead.get_last_move_time()
for s in steppers:
hz = speed * s.inv_step_dist
es = s.enable_endstop_checking(print_time, hz)
es = s.enable_endstop_checking(print_time, s.step_dist / speed)
self.endstops.append(es)
self.toolhead.move(self.fill_coord(movepos), speed)
self.toolhead.reset_print_time()