From a625004729fc8a7f88572513b5e4f9344c47483a Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 7 Feb 2021 23:43:53 +0100 Subject: [PATCH] time output --- cube/User/Src/counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/User/Src/counter.c b/cube/User/Src/counter.c index e4e87c9..434c8c8 100644 --- a/cube/User/Src/counter.c +++ b/cube/User/Src/counter.c @@ -26,7 +26,7 @@ void counterTick(void *handle) { uint64_t cnt = tmpSum / tmpCnt; // double f = 1.0 / ((double)cnt) * 1.0e6; - uint64_t freq = 100 * 1.0e6 / cnt; + uint64_t freq = 1000 * 1.0e6 / cnt; // uint32_t ff = (uint32_t) ((f + 0.005) * 100); t_seconds *seconds = wizGetSeconds();