Just shuffle code around to allow no apogee/main but some pyro
channels and still make beeps.
Signed-off-by: Keith Packard <keithp@keithp.com>
*/
#define HAS_IGNITE 0
-#define HAS_IGNITE_REPORT 0
+#define HAS_IGNITE_REPORT 1
#define AO_PYRO_NUM 2
#define AO_SENSE_PYRO(p,n) ((p)->adc.sense[n])
#endif
#if HAS_IGNITE_REPORT
+#if HAS_IGNITE
static uint8_t
ao_report_igniter_ready(enum ao_igniter igniter)
{
return (ao_report_igniter_ready(ao_igniter_drogue) |
(ao_report_igniter_ready(ao_igniter_main) << 1));
}
+#endif
static void
ao_report_continuity(void)
{
+ uint8_t c;
#if HAS_IGNITE
- uint8_t c = ao_report_igniter();
+ c = ao_report_igniter();
if (c) {
while (c--) {
high(AO_MS_TO_TICKS(25));