summaryrefslogtreecommitdiff
path: root/src/kernel/ao_pyro.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-08 18:50:59 -0700
committerKeith Packard <keithp@keithp.com>2017-10-08 18:53:52 -0700
commitc8dbfff65dd61e42d0a02158dcb520e7710ef87e (patch)
tree8340c72f26693a0e516d190a2d56ef5ed636d3cf /src/kernel/ao_pyro.h
parent5d82209122e3b797a7345f6ad5b6710832fcdd4a (diff)
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>
Diffstat (limited to 'src/kernel/ao_pyro.h')
-rw-r--r--src/kernel/ao_pyro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/ao_pyro.h b/src/kernel/ao_pyro.h
index a730ef19..3ab5af3b 100644
--- a/src/kernel/ao_pyro.h
+++ b/src/kernel/ao_pyro.h
@@ -63,7 +63,7 @@ struct ao_pyro {
uint8_t state_less, state_greater_or_equal;
int16_t motor;
uint16_t delay_done;
- uint8_t fired;
+ uint8_t _unused; /* was 'fired' */
};
#define AO_PYRO_8_BIT_VALUE (ao_pyro_state_less|ao_pyro_state_greater_or_equal)