X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fdrivers%2Fao_mma655x.c;h=28fe1e08b1d28b46354ce0200d2954aaacb826d3;hp=18c5317ce8c89f6d4791062f2fec1b4d04940223;hb=0361235c9ef56738ba0e97be88a85afef0ce8268;hpb=39c5738acdfdf0c87b64de6135fe107971cfa12b 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) {