mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
endstop: Report trigger time in endstop_query response
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
470b1e2e46
commit
edea52863a
2 changed files with 5 additions and 4 deletions
|
@ -132,10 +132,11 @@ endstop_report(uint8_t oid, struct endstop *e)
|
|||
irq_disable();
|
||||
uint8_t eflags = e->flags;
|
||||
e->flags &= ~ESF_REPORT;
|
||||
uint32_t nextwake = e->nextwake;
|
||||
irq_enable();
|
||||
|
||||
sendf("endstop_state oid=%c homing=%c pin_value=%c"
|
||||
, oid, !!(eflags & ESF_HOMING), gpio_in_read(e->pin));
|
||||
sendf("endstop_state oid=%c homing=%c next_clock=%u pin_value=%c"
|
||||
, oid, !!(eflags & ESF_HOMING), nextwake, gpio_in_read(e->pin));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue