mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-17 19:57:57 -06:00
sched: Change sched_from_ms() to sched_from_us()
Some code may require micro-second precision so update sched_from_ms() to use micro-seconds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d68cb264c4
commit
ed103822f5
7 changed files with 16 additions and 16 deletions
|
@ -205,7 +205,7 @@ stats_task(void)
|
|||
sumsq = nextsumsq;
|
||||
|
||||
static uint32_t prev;
|
||||
if (sched_is_before(cur, prev + sched_from_ms(5000)))
|
||||
if (sched_is_before(cur, prev + sched_from_us(5000000)))
|
||||
return;
|
||||
sendf("stats count=%u sum=%u sumsq=%u", count, cur - prev, sumsq);
|
||||
prev = cur;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue