altos: Allow multiple manual firing of main/drogue channels
authorKeith Packard <keithp@keithp.com>
Sat, 8 Aug 2020 04:49:37 +0000 (21:49 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 8 Aug 2020 04:49:37 +0000 (21:49 -0700)
Reset the 'fired' status so that you can trigger these multiple times
without needing to reboot.

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

index 6c19a94cf3051a8a9d04e5a8bd6762af65259cf9..e4e4843e1cb8383ba1597699988fc0c67a57bf6f 100644 (file)
@@ -148,10 +148,12 @@ ao_ignite_manual(void)
        ao_cmd_white();
 #if HAS_IGNITE
        if (ao_cmd_lex_c == 'm' && ao_match_word("main")) {
+               ao_ignition[ao_igniter_main].fired = 0;
                ao_igniter_fire(ao_igniter_main);
                return;
        }
        if (ao_cmd_lex_c == 'd' && ao_match_word("drogue")) {
+               ao_ignition[ao_igniter_drogue].fired = 0;
                ao_igniter_fire(ao_igniter_drogue);
                return;
        }