*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
#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;
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;
}