diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-18 16:49:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-18 16:49:28 -0700 |
commit | 7f664da148ae15d46d179d8ecede6fc0bc710ffb (patch) | |
tree | bd679edad131beb3fb00640ad7805b54c74ef289 /src/drivers/ao_mpu6000.c | |
parent | 3aba5eb5a75dff3e7c8778561c533903eacb110a (diff) | |
parent | 23b0c2fe95dbfaa4a8ce603b56b75d12d2c17d8c (diff) |
Diffstat (limited to 'src/drivers/ao_mpu6000.c')
-rw-r--r-- | src/drivers/ao_mpu6000.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/ao_mpu6000.c b/src/drivers/ao_mpu6000.c index b3e284e0..49596705 100644 --- a/src/drivers/ao_mpu6000.c +++ b/src/drivers/ao_mpu6000.c @@ -240,13 +240,15 @@ ao_mpu6000_setup(void) ao_mpu6000_configured = 1; } +struct ao_mpu6000_sample ao_mpu6000_current; + static void ao_mpu6000(void) { ao_mpu6000_setup(); for (;;) { - ao_mpu6000_sample((struct ao_mpu6000_sample *) &ao_data_ring[ao_data_head].mpu6000); + ao_mpu6000_sample(&ao_mpu6000_current); ao_arch_critical( AO_DATA_PRESENT(AO_DATA_MPU6000); AO_DATA_WAIT(); |