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
parent
fe621eb280
commit
bcf818b8fd
|
|
@ -101,8 +101,8 @@ st_timer_t Motion::Step() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void Isr() {
|
static inline void Isr() {
|
||||||
st_timer_t next = motion.Step();
|
|
||||||
#ifdef __AVR__
|
#ifdef __AVR__
|
||||||
|
st_timer_t next = motion.Step();
|
||||||
// TODO: use proper timer abstraction
|
// TODO: use proper timer abstraction
|
||||||
if (next)
|
if (next)
|
||||||
OCR1A = next;
|
OCR1A = next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue