From: Keith Packard Date: Mon, 18 Sep 2017 16:54:27 +0000 (-0700) Subject: altos: Flush pyro updates during fake flight X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f7b1320061a2bb331cd08550632c62ca46208b3b altos: Flush pyro updates during fake flight Let them appear at the right time. Signed-off-by: Keith Packard --- 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; }