diff options
Diffstat (limited to 'usb-i2c-sl018/stepper.c')
-rw-r--r-- | usb-i2c-sl018/stepper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-i2c-sl018/stepper.c b/usb-i2c-sl018/stepper.c index d6508e7..1a762cd 100644 --- a/usb-i2c-sl018/stepper.c +++ b/usb-i2c-sl018/stepper.c @@ -25,6 +25,7 @@ #include <avr/interrupt.h> #include "stepper.h" +#include "limits.h" uint8_t step_table [] = { @@ -56,6 +57,8 @@ inline void stop_stepper(void) inline uint8_t handle_step(void) { static uint8_t step_idx = 0; + + // limits_t l = get_limits(); if(step_cnt < STEP_CNT_STOP) { step_idx += (step_direction == dir_open) ? 1 : -1; |