Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HP206C mbed HMC5883L DHT DS1820
Diff: T_H_air.cpp
- Revision:
- 50:2cbcbc06ceb6
- Parent:
- 46:40b6bbf6167e
- Child:
- 53:a0752606d02c
--- a/T_H_air.cpp Tue Oct 02 13:51:25 2018 +0000
+++ b/T_H_air.cpp Mon Oct 08 10:00:19 2018 +0000
@@ -6,11 +6,9 @@
int err = 0;
err = sensor.readData();
- if( !err ){
+ while( !err ){
return sensor.ReadHumidity() ;
}
- warningAir = 1;
- return EXIT_FAILURE ;
}
float airTemperature(DHT sensor){
@@ -18,9 +16,7 @@
int err = 0;
err = sensor.readData();
- if( !err ){
+ while( !err ){
return sensor.ReadTemperature(CELCIUS) ;
}
- warningAir = 1;
- return EXIT_FAILURE ;
}
\ No newline at end of file
