Only run the conversion cycle at 5 Hz.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 30 Jun 2007 20:20:10 +0000 (20:20 +0000)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 30 Jun 2007 20:20:10 +0000 (20:20 +0000)
kokare.c

index 12fbf9a..67324b1 100644 (file)
--- a/kokare.c
+++ b/kokare.c
@@ -224,6 +224,7 @@ void convcycle(void)
            a = (float)ttimea;
            state = 1;
            tavgok = 0;
+           last = mnow;
        }
     } else if(state == 1) {
        ra = a * C;