mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 05:54:05 -06:00
mcu: Integrate query_endstop_wait() into query_endstop()
There is no need to have two separate calls to query an endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ced5e35f0c
commit
b2c778b931
5 changed files with 6 additions and 16 deletions
|
@ -145,8 +145,7 @@ class PrinterProbe:
|
|||
def cmd_QUERY_PROBE(self, params):
|
||||
toolhead = self.printer.lookup_object('toolhead')
|
||||
print_time = toolhead.get_last_move_time()
|
||||
self.mcu_probe.query_endstop(print_time)
|
||||
res = self.mcu_probe.query_endstop_wait()
|
||||
res = self.mcu_probe.query_endstop(print_time)
|
||||
self.gcode.respond_info(
|
||||
"probe: %s" % (["open", "TRIGGERED"][not not res],))
|
||||
cmd_PROBE_ACCURACY_help = "Probe Z-height accuracy at current XY position"
|
||||
|
@ -244,7 +243,6 @@ class ProbeEndstopWrapper:
|
|||
self.home_start = self.mcu_endstop.home_start
|
||||
self.home_wait = self.mcu_endstop.home_wait
|
||||
self.query_endstop = self.mcu_endstop.query_endstop
|
||||
self.query_endstop_wait = self.mcu_endstop.query_endstop_wait
|
||||
self.TimeoutError = self.mcu_endstop.TimeoutError
|
||||
def _build_config(self):
|
||||
kin = self.printer.lookup_object('toolhead').get_kinematics()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue