summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-28 00:01:18 -0700
committerKeith Packard <keithp@keithp.com>2017-04-28 00:01:18 -0700
commit4896582922ba5227da031c762221c8c7eafc2415 (patch)
treea95d13231b6f0381afa36be0668a56baa5af88ee /src
parent4d4675cbadcb0ab9df8f6d5155797dca400315c0 (diff)
altos/micropeak: Use existing ao_ms5607_current variable
Instead of defining another. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/product/ao_micropeak.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/product/ao_micropeak.c b/src/product/ao_micropeak.c
index f9960eb8..8aac79cd 100644
--- a/src/product/ao_micropeak.c
+++ b/src/product/ao_micropeak.c
@@ -22,7 +22,6 @@
#include <ao_log_micro.h>
#include <ao_async.h>
-static struct ao_ms5607_sample sample;
static struct ao_ms5607_value value;
alt_t ground_alt, max_alt;
@@ -31,8 +30,8 @@ alt_t ao_max_height;
void
ao_pa_get(void)
{
- ao_ms5607_sample(&sample);
- ao_ms5607_convert(&sample, &value);
+ ao_ms5607_sample(&ao_ms5607_current);
+ ao_ms5607_convert(&ao_ms5607_current, &value);
pa = value.pres;
}