altos: Add logging and telem to telegps
[fw/altos] / src / core / ao_telemetry.c
index 8d440e15410ff4bd7833bcd5da6e1380d8ba46f9..3aa315c765926cfa9e8cacf81c487fd1fc21caea 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "ao.h"
  */
 
 #include "ao.h"
+#include "ao_log.h"
 #include "ao_product.h"
 
 static __pdata uint16_t ao_telemetry_interval;
 #include "ao_product.h"
 
 static __pdata uint16_t ao_telemetry_interval;
@@ -306,12 +307,14 @@ ao_telemetry(void)
 #ifdef AO_SEND_ALL_BARO
                                ao_send_baro();
 #endif
 #ifdef AO_SEND_ALL_BARO
                                ao_send_baro();
 #endif
+#if HAS_FLIGHT
 #ifdef AO_SEND_MEGA
                                ao_send_mega_sensor();
                                ao_send_mega_data();
 #else
                                ao_send_sensor();
 #endif
 #ifdef AO_SEND_MEGA
                                ao_send_mega_sensor();
                                ao_send_mega_data();
 #else
                                ao_send_sensor();
 #endif
+#endif
 
 #if HAS_COMPANION
                                if (ao_companion_running)
 
 #if HAS_COMPANION
                                if (ao_companion_running)