summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-09-18 09:54:27 -0700
committerKeith Packard <keithp@keithp.com>2017-09-18 09:59:44 -0700
commitf7b1320061a2bb331cd08550632c62ca46208b3b (patch)
treecf27053b56f06f8e27c650707f6087e28776b3bd
parentc94c8ccf7c994c8f5e6a6da70157503e14c2a71a (diff)
altos: Flush pyro updates during fake flight
Let them appear at the right time. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/kernel/ao_fake_flight.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/ao_fake_flight.c b/src/kernel/ao_fake_flight.c
index 5880cf2b..8b2ecef0 100644
--- a/src/kernel/ao_fake_flight.c
+++ b/src/kernel/ao_fake_flight.c
@@ -180,8 +180,10 @@ ao_fake_flight(void)
for (pyro = 0; pyro < AO_PYRO_NUM; pyro++) {
uint16_t bit = (1 << pyro);
- if (!(my_pyro_fired & bit) && (ao_pyro_fired & bit))
+ if (!(my_pyro_fired & bit) && (ao_pyro_fired & bit)) {
printf ("fire %d\n", pyro);
+ flush();
+ }
}
my_pyro_fired = ao_pyro_fired;
}