From 66ebca3ade235f5be042dab691d63aacb9767b39 Mon Sep 17 00:00:00 2001 From: Antonio Lignan Date: Sat, 23 Jan 2016 15:42:13 +0100 Subject: [PATCH] Updated to new adc-zoul renaming --- platform/zoul/dev/weather-meter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/zoul/dev/weather-meter.c b/platform/zoul/dev/weather-meter.c index 8d3ee07f1..9c46a520a 100644 --- a/platform/zoul/dev/weather-meter.c +++ b/platform/zoul/dev/weather-meter.c @@ -45,7 +45,7 @@ /*---------------------------------------------------------------------------*/ #include #include "contiki.h" -#include "dev/adc-sensors.h" +#include "dev/adc-zoul.h" #include "dev/weather-meter.h" #include "dev/zoul-sensors.h" #include "lib/sensors.h" @@ -178,7 +178,7 @@ weather_meter_wind_vane_degrees(uint16_t value) static int weather_meter_get_wind_dir(void) { - weather_sensors.wind_vane = adc_sensors.value(WIND_VANE_ADC); + weather_sensors.wind_vane = adc_zoul.value(WIND_VANE_ADC); if((int16_t)weather_sensors.wind_vane < 0) { weather_sensors.wind_vane = 0; } @@ -412,7 +412,7 @@ configure(int type, int value) } /* Configure the wind vane */ - adc_sensors.configure(SENSORS_HW_INIT, WIND_VANE_ADC); + adc_zoul.configure(SENSORS_HW_INIT, WIND_VANE_ADC); /* Configure anemometer interruption */ GPIO_SOFTWARE_CONTROL(ANEMOMETER_SENSOR_PORT_BASE, ANEMOMETER_SENSOR_PIN_MASK);