summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-05-27 17:45:09 -0600
committerKeith Packard <keithp@keithp.com>2012-05-27 17:45:09 -0600
commit5dd5e0284c8b26b0d4ce69c64bb7864e0ae83db7 (patch)
tree184d1fda5c78816575deceff7c1698cfbe3d2a5d
parent29edf6d901432a1afc65900ff599c963edac5a2b (diff)
altos: Make telepyro-v0.1 build with new ao_data struct
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_pyro_slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_pyro_slave.c b/src/drivers/ao_pyro_slave.c
index 5a8ab922..70206a00 100644
--- a/src/drivers/ao_pyro_slave.c
+++ b/src/drivers/ao_pyro_slave.c
@@ -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: