update comment only

pull/33/head
doctea 9 months ago
parent 99d1845201
commit bb68563c55
  1. 4
      src/platforms/rp2040.h

@ -31,7 +31,7 @@
void setTimer(uint32_t us_interval) { void setTimer(uint32_t us_interval) {
cancel_repeating_timer(&timer); 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); add_repeating_timer_us(us_interval, &handlerISR, NULL, &timer);
} }
#else #else
@ -91,7 +91,7 @@
void setTimer(uint32_t us_interval) { void setTimer(uint32_t us_interval) {
cancel_repeating_timer(&timer); 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); add_repeating_timer_us(us_interval, &handlerISR, NULL, &timer);
} }

Loading…
Cancel
Save