Commit 0ff8c20b68f8a5e88051a4cc42f7362ff7806cfa
1 parent
dab6e932
--no commit message
Showing
1 changed file
with
4 additions
and
4 deletions
Project/applications/smartcities/sensors.c
@@ -418,14 +418,14 @@ void collecData(char* valueSensors[], uint8_t* sensors){ | @@ -418,14 +418,14 @@ void collecData(char* valueSensors[], uint8_t* sensors){ | ||
418 | valueSensors[i]=distance_value(get_distance_data()); | 418 | valueSensors[i]=distance_value(get_distance_data()); |
419 | continue; | 419 | continue; |
420 | } | 420 | } |
421 | - else if(sensors[i]==PRESSURE_ADDR){ | ||
422 | - valueSensors[i]=pressure_value(get_pressure_data()); | ||
423 | - continue; | ||
424 | - } | ||
425 | else if(sensors[i]==SOUND_ADDR){ | 421 | else if(sensors[i]==SOUND_ADDR){ |
426 | valueSensors[i]=sound_value(get_sound_data()); | 422 | valueSensors[i]=sound_value(get_sound_data()); |
427 | continue; | 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 | else if(sensors[i]==HUMIDITY_TEMP_ADDR){ | 429 | else if(sensors[i]==HUMIDITY_TEMP_ADDR){ |
430 | valueSensors[i]=temp_humidity_value(get_temperature_data(),get_humidity_data()); | 430 | valueSensors[i]=temp_humidity_value(get_temperature_data(),get_humidity_data()); |
431 | continue; | 431 | continue; |