altos: Make telepyro-v0.1 build with new ao_data struct
authorKeith Packard <keithp@keithp.com>
Sun, 27 May 2012 23:45:09 +0000 (17:45 -0600)
committerKeith Packard <keithp@keithp.com>
Sun, 27 May 2012 23:45:09 +0000 (17:45 -0600)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_pyro_slave.c

index 5a8ab9223b095bc7bd83380a07ce0d4393cdd9db..70206a00a994fca62b7551bb2439089a287ebe4e 100644 (file)
@@ -41,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: