ao_flight_test was using accel value for pressure too
authorKeith Packard <keithp@keithp.com>
Tue, 3 Nov 2009 07:48:29 +0000 (23:48 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Nov 2009 07:51:41 +0000 (23:51 -0800)
src/ao_flight_test.c

index 61f48cb6e14d8236bd111368c24cf44856cfcd27..2bf7f2b233a4a3b789d5031d60b7adf1482de225 100644 (file)
@@ -217,7 +217,7 @@ ao_sleep(void *wchan)
                                type = words[0][0];
                                tick = strtoul(words[1], NULL, 16);
                                a = strtoul(words[2], NULL, 16);
-                               b = strtoul(words[2], NULL, 16);
+                               b = strtoul(words[3], NULL, 16);
                        } else if (nword >= 36 && strcmp(words[0], "CALL") == 0) {
                                tick = atoi(words[10]);
                                if (!ao_flight_started) {