From f7b1320061a2bb331cd08550632c62ca46208b3b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 18 Sep 2017 09:54:27 -0700 Subject: [PATCH] altos: Flush pyro updates during fake flight Let them appear at the right time. Signed-off-by: Keith Packard --- src/kernel/ao_fake_flight.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2