Skip to content

Commit 3bba771

Browse files
author
Giuseppe Masino
committed
Changed boolean to bool
1 parent c978977 commit 3bba771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DHT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ float DHT::computeHeatIndex(float temperature, float percentHumidity, bool isFah
120120
return isFahrenheit ? hi : convertFtoC(hi);
121121
}
122122

123-
boolean DHT::read(bool force) {
123+
bool DHT::read(bool force) {
124124
// Check if sensor was read less than two seconds ago and return early
125125
// to use last reading.
126126
uint32_t currenttime = millis();

DHT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class DHT {
4444
float convertFtoC(float);
4545
float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=true);
4646
float readHumidity(bool force=false);
47-
boolean read(bool force=false);
47+
bool read(bool force=false);
4848

4949
private:
5050
uint8_t data[5];

0 commit comments

Comments
 (0)