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();