summaryrefslogtreecommitdiff
path: root/src/drivers/ao_hmc5883.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-20 22:15:25 -0800
committerKeith Packard <keithp@keithp.com>2013-12-20 22:19:35 -0800
commitb31b4622d5bd92c0cc0851818f5b595dbdb60ead (patch)
tree7ce882a3f9a583903d2054471769a82e7c3de852 /src/drivers/ao_hmc5883.c
parent755082d36231c1b247bc0e1f13919dd9b5c362a8 (diff)
altos: Clean up some minor warnings from -Wall
Unused variables, functions and labels, missing enums in switch. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_hmc5883.c')
-rw-r--r--src/drivers/ao_hmc5883.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/drivers/ao_hmc5883.c b/src/drivers/ao_hmc5883.c
index 782d03f4..2d217bcf 100644
--- a/src/drivers/ao_hmc5883.c
+++ b/src/drivers/ao_hmc5883.c
@@ -70,7 +70,6 @@ ao_hmc5883_sample(struct ao_hmc5883_sample *sample)
{
uint16_t *d = (uint16_t *) sample;
int i = sizeof (*sample) / 2;
- uint8_t single = HMC5883_MODE_SINGLE;
ao_hmc5883_done = 0;
ao_exti_enable(AO_HMC5883_INT_PORT, AO_HMC5883_INT_PIN);