From bb68563c55d9af312a9179a0bb422e957e5c4bab Mon Sep 17 00:00:00 2001 From: doctea Date: Sun, 4 Feb 2024 21:42:22 +0000 Subject: [PATCH] update comment only --- src/platforms/rp2040.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/rp2040.h b/src/platforms/rp2040.h index af94e12..fa6b69e 100644 --- a/src/platforms/rp2040.h +++ b/src/platforms/rp2040.h @@ -31,7 +31,7 @@ void setTimer(uint32_t us_interval) { cancel_repeating_timer(&timer); - // todo: actually should be -init_clock so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick! + // todo: actually should be -us_interval so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick! add_repeating_timer_us(us_interval, &handlerISR, NULL, &timer); } #else @@ -91,7 +91,7 @@ void setTimer(uint32_t us_interval) { cancel_repeating_timer(&timer); - // todo: actually should be -init_clock so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick! + // todo: actually should be -us_interval so that timer is set to start init_clock us after last tick, instead of init_clock us after finished processing last tick! add_repeating_timer_us(us_interval, &handlerISR, NULL, &timer); }