summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018/stepper.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-02-07 00:25:00 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-02-07 00:25:00 +0000
commit839340ee596193bdebbc3a6190d9071bb169f541 (patch)
tree7e694df1e0aa7e6df5899924ebffccc9ddfc76b0 /usb-i2c-sl018/stepper.c
parentmotor controll + bugfix (diff)
added event for moving timeout
git-svn-id: https://svn.spreadspace.org/avr/trunk@160 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018/stepper.c')
-rw-r--r--usb-i2c-sl018/stepper.c3
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;