Instead of defining another.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include <ao_log_micro.h>
#include <ao_async.h>
#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;
static struct ao_ms5607_value value;
alt_t ground_alt, max_alt;
- ao_ms5607_sample(&sample);
- ao_ms5607_convert(&sample, &value);
+ ao_ms5607_sample(&ao_ms5607_current);
+ ao_ms5607_convert(&ao_ms5607_current, &value);