endstop: Report trigger time in endstop_query response

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-04-02 11:51:19 -04:00
parent 470b1e2e46
commit edea52863a
2 changed files with 5 additions and 4 deletions

View file

@ -53,8 +53,8 @@ class MCU_endstop:
"endstop_query_state oid=%c", cq=cmd_queue)
self._query_cmd = self._mcu.lookup_query_command(
"endstop_query_state oid=%c",
"endstop_state oid=%c homing=%c pin_value=%c", oid=self._oid,
cq=cmd_queue)
"endstop_state oid=%c homing=%c next_clock=%u pin_value=%c",
oid=self._oid, cq=cmd_queue)
def home_start(self, print_time, sample_time, sample_count, rest_time,
triggered=True):
clock = self._mcu.print_time_to_clock(print_time)