aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-04-29 20:46:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-30 11:40:37 -0400
commitb611e72a19d499208e09e426a7e8358a78a62b55 (patch)
treef5bf71be278b1f9047353d5f531e04a07fac5c35 /src
parent8f76e53c0eef351576be7fa2acbb964af031d7b3 (diff)
downloadkutter-b611e72a19d499208e09e426a7e8358a78a62b55.tar.gz
kutter-b611e72a19d499208e09e426a7e8358a78a62b55.tar.xz
kutter-b611e72a19d499208e09e426a7e8358a78a62b55.zip
pulse_counter: Use "clock" suffix instead of "time" in commands
The debugging code knows how to handle fields that end in "clock". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-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);