From a6c30b4e09546686aad1bc9d9f340d77e80a6a0a Mon Sep 17 00:00:00 2001 From: Antonio Lignan Date: Tue, 19 Jan 2016 22:23:30 +0100 Subject: [PATCH] Fixed missing static keyword in both zoul-demo and weather meter driver --- examples/zolertia/zoul/zoul-demo.c | 2 +- platform/zoul/dev/weather-meter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/zolertia/zoul/zoul-demo.c b/examples/zolertia/zoul/zoul-demo.c index 127c18d50..a88e7c48c 100644 --- a/examples/zolertia/zoul/zoul-demo.c +++ b/examples/zolertia/zoul/zoul-demo.c @@ -108,7 +108,7 @@ broadcast_recv(struct broadcast_conn *c, const linkaddr_t *from) static const struct broadcast_callbacks bc_rx = { broadcast_recv }; static struct broadcast_conn bc; /*---------------------------------------------------------------------------*/ -void +static void rt_callback(struct rtimer *t, void *ptr) { leds_off(LEDS_PERIODIC); diff --git a/platform/zoul/dev/weather-meter.c b/platform/zoul/dev/weather-meter.c index 933fc975d..8d3ee07f1 100644 --- a/platform/zoul/dev/weather-meter.c +++ b/platform/zoul/dev/weather-meter.c @@ -185,7 +185,7 @@ weather_meter_get_wind_dir(void) return weather_meter_wind_vane_degrees(weather_sensors.wind_vane); } /*---------------------------------------------------------------------------*/ -void +static void rt_callback(struct rtimer *t, void *ptr) { uint32_t wind_speed; @@ -223,7 +223,7 @@ rt_callback(struct rtimer *t, void *ptr) /* Calculate the 2 minute average */ 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) { anemometer.value_avg_xm = anemometer.value_buf_xm / WEATHER_METER_AVG_PERIOD;