altos: Allow use of internal EEPROM for config storage
[fw/altos] / src / telegps-v0.1 / ao_telegps.c
index 91796c21082e983bcde7bcbd508dabdd125a5cd5..bc37b504fd43da32f247d93a8d2b087891cb950e 100644 (file)
@@ -18,6 +18,7 @@
 #include <ao.h>
 #include <ao_exti.h>
 #include <ao_fat.h>
+#include <ao_eeprom.h>
 
 uint16_t       ao_flight_number = 1;
 
@@ -40,7 +41,7 @@ main(void)
        ao_dma_init();
        ao_exti_init();
 
-       ao_storage_init();
+       ao_eeprom_init();
 
        ao_serial_init();
 
@@ -58,6 +59,9 @@ main(void)
        ao_telemetry_set_interval(AO_SEC_TO_TICKS(1));
        ao_rdf_set(1);
 
+#if HAS_SAMPLE_PROFILE
+       ao_sample_profile_init();
+#endif
        ao_config_init();
        
        ao_start_scheduler();