summaryrefslogtreecommitdiff
path: root/src/drivers/ao_hmc5883.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-18 16:49:28 -0700
committerKeith Packard <keithp@keithp.com>2012-10-18 16:49:28 -0700
commit7f664da148ae15d46d179d8ecede6fc0bc710ffb (patch)
treebd679edad131beb3fb00640ad7805b54c74ef289 /src/drivers/ao_hmc5883.c
parent3aba5eb5a75dff3e7c8778561c533903eacb110a (diff)
parent23b0c2fe95dbfaa4a8ce603b56b75d12d2c17d8c (diff)
Merge branch 'master' into pwmin-new1.1.9.1pwmin-new
Diffstat (limited to 'src/drivers/ao_hmc5883.c')
-rw-r--r--src/drivers/ao_hmc5883.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/ao_hmc5883.c b/src/drivers/ao_hmc5883.c
index ade6c263..059fc2c8 100644
--- a/src/drivers/ao_hmc5883.c
+++ b/src/drivers/ao_hmc5883.c
@@ -123,12 +123,14 @@ ao_hmc5883_setup(void)
return 1;
}
+struct ao_hmc5883_sample ao_hmc5883_current;
+
static void
ao_hmc5883(void)
{
ao_hmc5883_setup();
for (;;) {
- ao_hmc5883_sample((struct ao_hmc5883_sample *) &ao_data_ring[ao_data_head].hmc5883);
+ ao_hmc5883_sample(&ao_hmc5883_current);
ao_arch_critical(
AO_DATA_PRESENT(AO_DATA_HMC5883);
AO_DATA_WAIT();