Fixed missing static keyword in both zoul-demo and weather meter driver
This commit is contained in:
parent
366f11d5df
commit
a6c30b4e09
|
@ -108,7 +108,7 @@ broadcast_recv(struct broadcast_conn *c, const linkaddr_t *from)
|
||||||
static const struct broadcast_callbacks bc_rx = { broadcast_recv };
|
static const struct broadcast_callbacks bc_rx = { broadcast_recv };
|
||||||
static struct broadcast_conn bc;
|
static struct broadcast_conn bc;
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
static void
|
||||||
rt_callback(struct rtimer *t, void *ptr)
|
rt_callback(struct rtimer *t, void *ptr)
|
||||||
{
|
{
|
||||||
leds_off(LEDS_PERIODIC);
|
leds_off(LEDS_PERIODIC);
|
||||||
|
|
|
@ -185,7 +185,7 @@ weather_meter_get_wind_dir(void)
|
||||||
return weather_meter_wind_vane_degrees(weather_sensors.wind_vane);
|
return weather_meter_wind_vane_degrees(weather_sensors.wind_vane);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
static void
|
||||||
rt_callback(struct rtimer *t, void *ptr)
|
rt_callback(struct rtimer *t, void *ptr)
|
||||||
{
|
{
|
||||||
uint32_t wind_speed;
|
uint32_t wind_speed;
|
||||||
|
@ -223,7 +223,7 @@ rt_callback(struct rtimer *t, void *ptr)
|
||||||
|
|
||||||
/* Calculate the 2 minute average */
|
/* Calculate the 2 minute average */
|
||||||
if(!(anemometer.ticks_avg % WEATHER_METER_AVG_PERIOD)) {
|
if(!(anemometer.ticks_avg % WEATHER_METER_AVG_PERIOD)) {
|
||||||
PRINTF("Weather: calculate the %u averages ***\n", WEATHER_METER_AVG_PERIOD);
|
PRINTF("\nWeather: calculate the %u averages ***\n", WEATHER_METER_AVG_PERIOD);
|
||||||
|
|
||||||
if(anemometer.value_buf_xm) {
|
if(anemometer.value_buf_xm) {
|
||||||
anemometer.value_avg_xm = anemometer.value_buf_xm / WEATHER_METER_AVG_PERIOD;
|
anemometer.value_avg_xm = anemometer.value_buf_xm / WEATHER_METER_AVG_PERIOD;
|
||||||
|
|
Loading…
Reference in a new issue