summaryrefslogtreecommitdiff
path: root/src/drivers/ao_ms5607.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_ms5607.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_ms5607.c')
-rw-r--r--src/drivers/ao_ms5607.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/drivers/ao_ms5607.c b/src/drivers/ao_ms5607.c
index 492199b8..736e115b 100644
--- a/src/drivers/ao_ms5607.c
+++ b/src/drivers/ao_ms5607.c
@@ -241,13 +241,11 @@ ao_ms5607_info(void)
static void
ao_ms5607_dump(void)
{
- struct ao_data data;
struct ao_ms5607_value value;
- ao_data_get(&data);
- ao_ms5607_convert(&data.ms5607_raw, &value);
- printf ("Pressure: %8u %8d\n", data.ms5607_raw.pres, value.pres);
- printf ("Temperature: %8u %8d\n", data.ms5607_raw.temp, value.temp);
+ ao_ms5607_convert(&ao_ms5607_current, &value);
+ printf ("Pressure: %8u %8d\n", ao_ms5607_current.pres, value.pres);
+ printf ("Temperature: %8u %8d\n", ao_ms5607_current.temp, value.temp);
printf ("Altitude: %ld\n", ao_pa_to_altitude(value.pres));
}