aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/endstop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/endstop.c b/src/endstop.c
index 9c2f833e..96f8e805 100644
--- a/src/endstop.c
+++ b/src/endstop.c
@@ -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