Let them appear at the right time.
Signed-off-by: Keith Packard <keithp@keithp.com>
for (pyro = 0; pyro < AO_PYRO_NUM; pyro++) {
uint16_t bit = (1 << pyro);
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);
printf ("fire %d\n", pyro);
}
my_pyro_fired = ao_pyro_fired;
}
}
my_pyro_fired = ao_pyro_fired;
}