Add missing state setting in PI servo when date check fails.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2013-06-18 12:09:36 +02:00 committed by Richard Cochran
parent 0bf412d24b
commit f657e47c26
1 changed files with 1 additions and 0 deletions

1
pi.c
View File

@ -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;
}