Silence motion::Isr() unused variable warning

Move motion.Step() directly inside the __AVR__ code, silencing an unused
variable warning.

Calling motion.Step() without getting or setting the timer is not useful
anyway.
pull/108/head
Yuri D'Elia 2021-08-28 18:24:09 +02:00 committed by DRracer
parent fe621eb280
commit bcf818b8fd
1 changed files with 1 additions and 1 deletions

View File

@ -101,8 +101,8 @@ st_timer_t Motion::Step() {
}
static inline void Isr() {
st_timer_t next = motion.Step();
#ifdef __AVR__
st_timer_t next = motion.Step();
// TODO: use proper timer abstraction
if (next)
OCR1A = next;