Commit 0ff8c20b68f8a5e88051a4cc42f7362ff7806cfa

Authored by Emilio Soca Herrera
1 parent dab6e932

--no commit message

Project/applications/smartcities/sensors.c
... ... @@ -418,14 +418,14 @@ void collecData(char* valueSensors[], uint8_t* sensors){
418 418 valueSensors[i]=distance_value(get_distance_data());
419 419 continue;
420 420 }
421   - else if(sensors[i]==PRESSURE_ADDR){
422   - valueSensors[i]=pressure_value(get_pressure_data());
423   - continue;
424   - }
425 421 else if(sensors[i]==SOUND_ADDR){
426 422 valueSensors[i]=sound_value(get_sound_data());
427 423 continue;
428 424 }
  425 + else if(sensors[i]==PRESSURE_ADDR){
  426 + valueSensors[i]=pressure_value(get_pressure_data(), get_pressure_temperature_data());
  427 + continue;
  428 + }
429 429 else if(sensors[i]==HUMIDITY_TEMP_ADDR){
430 430 valueSensors[i]=temp_humidity_value(get_temperature_data(),get_humidity_data());
431 431 continue;
... ...