summaryrefslogtreecommitdiff
path: root/src/drivers/ao_mma655x.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-08 23:24:19 -0700
committerKeith Packard <keithp@keithp.com>2012-10-08 23:24:19 -0700
commit0361235c9ef56738ba0e97be88a85afef0ce8268 (patch)
treef3264a7dfe85cfc00ab6e04256829c64c7c4eb9a /src/drivers/ao_mma655x.c
parent39c5738acdfdf0c87b64de6135fe107971cfa12b (diff)
altos: Fix up ms5607 and mma655x commands to work again
These just display the most recently fetched values Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_mma655x.c')
-rw-r--r--src/drivers/ao_mma655x.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/ao_mma655x.c b/src/drivers/ao_mma655x.c
index 18c5317c..28fe1e08 100644
--- a/src/drivers/ao_mma655x.c
+++ b/src/drivers/ao_mma655x.c
@@ -238,11 +238,12 @@ ao_mma655x_setup(void)
}
+uint16_t ao_mma655x_current;
+
static void
ao_mma655x_dump(void)
{
- ao_mma655x_setup();
- printf ("MMA655X value %d\n", ao_mma655x_value());
+ printf ("MMA655X value %d\n", ao_mma655x_current);
}
__code struct ao_cmds ao_mma655x_cmds[] = {
@@ -250,8 +251,6 @@ __code struct ao_cmds ao_mma655x_cmds[] = {
{ 0, NULL },
};
-uint16_t ao_mma655x_current;
-
static void
ao_mma655x(void)
{