projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
Revision 65:3f898ad77cb5, committed 2018-10-09
- Comitter:
- SBACCARI
- Date:
- Tue Oct 09 12:36:37 2018 +0000
- Parent:
- 64:7adaa9dfcb8c
- Child:
- 66:cbfcea17a3c5
- Commit message:
- correction fautes dans T_H_air.cpp
Changed in this revision
T_H_air.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/T_H_air.cpp Tue Oct 09 12:32:59 2018 +0000 +++ b/T_H_air.cpp Tue Oct 09 12:36:37 2018 +0000 @@ -29,7 +29,7 @@ void get_T_H_air(float* T, float* H, DHT sensor) { - int tmpH, tmpT ; + float tmpH, tmpT ; tmpT = airTemperature(sensor); if( tmpT!=0 ) {
--- a/main.cpp Tue Oct 09 12:32:59 2018 +0000 +++ b/main.cpp Tue Oct 09 12:36:37 2018 +0000 @@ -37,7 +37,7 @@ //collect data //alt = readAltitude(&hp206c); hmc5883.getXYZ(magXYZ); - get_T_H_air(&airT, &airH, sensor); + get_T_H_air(&airT, &airH, sensor); // takes 2s to execute // Display pc.printf("\n=====| Data |=====\n");