aboutsummaryrefslogtreecommitdiffstats
path: root/src/pulse_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse_counter.c')
-rw-r--r--src/pulse_counter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulse_counter.c b/src/pulse_counter.c
index c2cf4ea3..7837a3c8 100644
--- a/src/pulse_counter.c
+++ b/src/pulse_counter.c
@@ -87,13 +87,13 @@ counter_task(void)
if (!(c->flags & CF_PENDING))
continue;
irq_disable();
- uint32_t time = c->timer.waketime - c->poll_ticks;
+ uint32_t waketime = c->timer.waketime;
uint32_t count = c->count;
uint32_t count_time = c->last_count_time;
c->flags &= ~CF_PENDING;
irq_enable();
- sendf("counter_state oid=%c time=%u count=%u count_time=%u",
- oid, time, count, count_time);
+ sendf("counter_state oid=%c next_clock=%u count=%u count_clock=%u",
+ oid, waketime, count, count_time);
}
}
DECL_TASK(counter_task);