gcode: Rework endstop query to use greenlets

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-12-08 12:42:12 -05:00
parent ed9d7e4fae
commit a6de1db94d
7 changed files with 23 additions and 47 deletions

View file

@ -78,8 +78,6 @@ class PrinterStepper:
self.mcu_endstop.home(mcu_time, step_time)
return self.mcu_endstop
def query_endstop(self, print_time):
if self.mcu_endstop is None:
return None
mcu_time = self.mcu_endstop.print_to_mcu_time(print_time)
self.mcu_endstop.query_endstop(mcu_time)
return self.mcu_endstop