altos: Other half of the ms5607 prom reporting patch
[fw/altos] / src / drivers / ao_pyro_slave.c
index 5ef42b5ac61296b19a7a9f5774196b38a57d4ae5..70206a00a994fca62b7551bb2439089a287ebe4e 100644 (file)
@@ -15,8 +15,9 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-#include "ao.h"
-#include "ao_product.h"
+#include <ao.h>
+#include <ao_product.h>
+#include <ao_companion.h>
 
 struct ao_companion_command    ao_companion_command;
 
@@ -40,7 +41,7 @@ void ao_spi_slave(void)
                                  sizeof (ao_telepyro_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.adc,
                                  AO_TELEPYRO_NUM_ADC * sizeof (uint16_t));
                break;
        case AO_COMPANION_NOTIFY: