Miroslav Lichvar
2013-06-18 10:09:36 UTC
Signed-off-by: Miroslav Lichvar <***@redhat.com>
---
pi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pi.c b/pi.c
index 427cb3e..78cbd3f 100644
--- a/pi.c
+++ b/pi.c
@@ -76,6 +76,7 @@ static double pi_sample(struct servo *servo,
/* Make sure the first sample is older than the second. */
if (s->local[0] >= s->local[1]) {
+ *state = SERVO_UNLOCKED;
s->count = 0;
break;
}
---
pi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pi.c b/pi.c
index 427cb3e..78cbd3f 100644
--- a/pi.c
+++ b/pi.c
@@ -76,6 +76,7 @@ static double pi_sample(struct servo *servo,
/* Make sure the first sample is older than the second. */
if (s->local[0] >= s->local[1]) {
+ *state = SERVO_UNLOCKED;
s->count = 0;
break;
}
--
1.8.1.4
1.8.1.4