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;