Merge pull request #108 from qub1750ul/master

Use bool instead of boolean
This commit is contained in:
Paint Your Dragon 2019-01-11 16:23:45 -08:00 committed by GitHub
commit efcca31a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ float DHT::computeHeatIndex(float temperature, float percentHumidity, bool isFah
return isFahrenheit ? hi : convertFtoC(hi);
}
boolean DHT::read(bool force) {
bool DHT::read(bool force) {
// Check if sensor was read less than two seconds ago and return early
// to use last reading.
uint32_t currenttime = millis();

2
DHT.h
View File

@ -45,7 +45,7 @@ class DHT {
float convertFtoC(float);
float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=true);
float readHumidity(bool force=false);
boolean read(bool force=false);
bool read(bool force=false);
private:
uint8_t data[5];