From 0ff8c20b68f8a5e88051a4cc42f7362ff7806cfa Mon Sep 17 00:00:00 2001 From: Emilio Soca Herrera Date: Sat, 24 May 2014 08:28:38 +0000 Subject: [PATCH] --- Project/applications/smartcities/sensors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Project/applications/smartcities/sensors.c b/Project/applications/smartcities/sensors.c index fb97989..01f33bf 100644 --- a/Project/applications/smartcities/sensors.c +++ b/Project/applications/smartcities/sensors.c @@ -418,14 +418,14 @@ void collecData(char* valueSensors[], uint8_t* sensors){ valueSensors[i]=distance_value(get_distance_data()); continue; } - else if(sensors[i]==PRESSURE_ADDR){ - valueSensors[i]=pressure_value(get_pressure_data()); - continue; - } else if(sensors[i]==SOUND_ADDR){ valueSensors[i]=sound_value(get_sound_data()); continue; } + else if(sensors[i]==PRESSURE_ADDR){ + valueSensors[i]=pressure_value(get_pressure_data(), get_pressure_temperature_data()); + continue; + } else if(sensors[i]==HUMIDITY_TEMP_ADDR){ valueSensors[i]=temp_humidity_value(get_temperature_data(),get_humidity_data()); continue; -- libgit2 0.22.2