altos/cc1200: Adjust bit-sync configuration
[fw/altos] / src / drivers / ao_science_slave.c
index 1ebb1480b36927167fc38c035ccbb06b6796ccfb..996e98d9a6e5f6832023a2975a9979e50817fa8e 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "ao.h"
 #include "ao_product.h"
+#include "ao_flight.h"
+#include "ao_companion.h"
 
 struct ao_companion_command    ao_companion_command;
 
@@ -40,7 +42,7 @@ void ao_spi_slave(void)
                                  sizeof (ao_telescience_setup));
                break;
        case AO_COMPANION_FETCH:
-               ao_spi_slave_send((uint8_t *) &ao_adc_ring[ao_adc_ring_prev(ao_adc_head)].adc,
+               ao_spi_slave_send((uint8_t *) &ao_data_ring[ao_data_ring_prev(ao_data_head)].adc,
                                  AO_LOG_TELESCIENCE_NUM_ADC * sizeof (uint16_t));
                break;
        case AO_COMPANION_NOTIFY: