Fixed missing static keyword in both zoul-demo and weather meter driver

This commit is contained in:
Antonio Lignan 2016-01-19 22:23:30 +01:00
parent 366f11d5df
commit a6c30b4e09
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;