altos: Switch all tick variables to AO_TICK_TYPE/AO_TICK_SIGNED
[fw/altos] / src / drivers / ao_quadrature.c
index 20781c407374b9f5a5d41947ba8ea66774951e4d..97e67aa07bfd72f5cf934fbb33516afd363a509b 100644 (file)
@@ -170,8 +170,7 @@ ao_quadrature_test(void)
        int8_t t = 0;
 #endif
 
-       ao_cmd_decimal();
-       q = ao_cmd_lex_i;
+       q = ao_cmd_decimal();
        if (q >= AO_QUADRATURE_COUNT)
                ao_cmd_status = ao_cmd_syntax_error;
        if (ao_cmd_status != ao_cmd_success)
@@ -192,7 +191,7 @@ ao_quadrature_test(void)
                        t = ao_quadrature_step[q];
                        printf("step %3d ", t);
 #endif
-                       printf ("count %3d state %2x\n", c, s);
+                       printf ("count %3ld state %2x\n", (long) c, s);
                        flush();
                }
        }