altos: Pull igniter pins low as soon as possible at boot time
[fw/altos] / src / ao_telemetrum.c
index 1209c820ff3f9f42b49312492ef73d3940f96d9a..d9ea1fc8c5c91e475b3d511aa71697ac64027a6e 100644 (file)
@@ -28,8 +28,13 @@ ao_set_monitor(uint8_t monitoring)
 void
 main(void)
 {
-       ao_clock_init();
+       /*
+        * Reduce the transient on the ignite pins at startup by
+        * pulling the pins low as soon as possible at power up
+        */
+       ao_ignite_set_pins();
 
+       ao_clock_init();
 
        /* Turn on the red LED until the system is stable */
        ao_led_init(LEDS_AVAILABLE);
@@ -49,7 +54,7 @@ main(void)
        ao_beep_init();
        ao_cmd_init();
        ao_spi_init();
-       ao_ee_init();
+       ao_storage_init();
        ao_flight_init();
        ao_log_init();
        ao_report_init();
@@ -59,7 +64,7 @@ main(void)
        ao_gps_report_init();
        ao_telemetry_init();
        ao_radio_init();
-       ao_packet_slave_init();
+       ao_packet_slave_init(TRUE);
        ao_igniter_init();
 #if HAS_DBG
        ao_dbg_init();