summaryrefslogtreecommitdiff
path: root/src/kernel/ao_pyro.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-10 09:42:43 -0700
committerKeith Packard <keithp@keithp.com>2014-06-10 09:42:43 -0700
commitda9575fce5ff4dfe83522e290973a01c43e4661f (patch)
treefb4f4fdbbc08be54e726ebb1ba8485a4a3a57391 /src/kernel/ao_pyro.c
parent75df97b5f6ade3310618a477b685d39b7fd4666e (diff)
altos: Make extra pyro channel firing time configurable
This adds a 'I' parameter to set the extra pyro channel firing time (in ticks). This has no effect on the main/drogue channels. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_pyro.c')
-rw-r--r--src/kernel/ao_pyro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/ao_pyro.c b/src/kernel/ao_pyro.c
index 0ee7fbee..85d88d98 100644
--- a/src/kernel/ao_pyro.c
+++ b/src/kernel/ao_pyro.c
@@ -213,7 +213,7 @@ ao_pyro_pins_fire(uint16_t fire)
if (fire & (1 << p))
ao_pyro_pin_set(p, 1);
}
- ao_delay(AO_MS_TO_TICKS(50));
+ ao_delay(ao_config.pyro_time);
for (p = 0; p < AO_PYRO_NUM; p++) {
if (fire & (1 << p)) {
ao_pyro_pin_set(p, 0);