projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d4675c
)
altos/micropeak: Use existing ao_ms5607_current variable
author
Keith Packard
<keithp@keithp.com>
Fri, 28 Apr 2017 07:01:18 +0000
(
00:01
-0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 28 Apr 2017 07:01:18 +0000
(
00:01
-0700)
Instead of defining another.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/product/ao_micropeak.c
patch
|
blob
|
history
diff --git
a/src/product/ao_micropeak.c
b/src/product/ao_micropeak.c
index f9960eb8f17530796faa857294ebbc58a4e41545..8aac79cd141d4b6ed209836f80007116be5e6fa2 100644
(file)
--- 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;
}