X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fproduct%2Fao_micropeak.c;fp=src%2Fproduct%2Fao_micropeak.c;h=8aac79cd141d4b6ed209836f80007116be5e6fa2;hp=f9960eb8f17530796faa857294ebbc58a4e41545;hb=4896582922ba5227da031c762221c8c7eafc2415;hpb=4d4675cbadcb0ab9df8f6d5155797dca400315c0 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 #include -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; }