summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-02-06 23:34:23 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-02-06 23:34:23 +0000
commit39fbf3f7d4545f45bde7ae413c8d98ef6c96378f (patch)
treee454a7cbaac70d5a6510194494ae6a02a1368af4 /usb-i2c-sl018
parentneeds other limit none (diff)
renamed limits_none to moving
git-svn-id: https://svn.spreadspace.org/avr/trunk@153 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018')
-rw-r--r--usb-i2c-sl018/limits.c4
-rw-r--r--usb-i2c-sl018/limits.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/usb-i2c-sl018/limits.c b/usb-i2c-sl018/limits.c
index 98144ed..471f894 100644
--- a/usb-i2c-sl018/limits.c
+++ b/usb-i2c-sl018/limits.c
@@ -38,9 +38,9 @@ void init_limits(void)
limits_t limits_get(void)
{
- limits_t state = none;
+ limits_t state = moving;
- uint8_t tmp = LIMITS_PORT;
+ uint8_t tmp = LIMITS_PORT & (1<<LIMITS_OPEN | 1<<LIMITS_CLOSE);
return state;
diff --git a/usb-i2c-sl018/limits.h b/usb-i2c-sl018/limits.h
index 7624c83..0548bc1 100644
--- a/usb-i2c-sl018/limits.h
+++ b/usb-i2c-sl018/limits.h
@@ -24,7 +24,7 @@
#ifndef R3TUER_limits_h_INCLUDED
#define R3TUER_limits_h_INCLUDED
-typedef enum { none, open, close, both } limits_t;
+typedef enum { moving, open, close, both } limits_t;
void init_limits(void);
limits_t limits_get(void);