altos: Stop storing pyro fired status in config block
authorKeith Packard <keithp@keithp.com>
Mon, 9 Oct 2017 01:50:59 +0000 (18:50 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 9 Oct 2017 01:53:52 +0000 (18:53 -0700)
commitc8dbfff65dd61e42d0a02158dcb520e7710ef87e
tree8340c72f26693a0e516d190a2d56ef5ed636d3cf
parent5d82209122e3b797a7345f6ad5b6710832fcdd4a
altos: Stop storing pyro fired status in config block

We already have the fired status saved in the ao_pyro_fired variable,
so just use that to detect whether a channel has already been fired.

Fixes possible cases where the pyro config data gets written back to
eeprom with the fired bit set, which then inhibits the channel during
flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_pyro.c
src/kernel/ao_pyro.h