From 839340ee596193bdebbc3a6190d9071bb169f541 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 7 Feb 2013 00:25:00 +0000 Subject: added event for moving timeout git-svn-id: https://svn.spreadspace.org/avr/trunk@160 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- usb-i2c-sl018/stepper.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usb-i2c-sl018/stepper.c') 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 #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; -- cgit v1.2.3