mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Changed boolean to bool
This commit is contained in:
parent
c978977718
commit
3bba771f8c
2
DHT.cpp
2
DHT.cpp
@ -120,7 +120,7 @@ float DHT::computeHeatIndex(float temperature, float percentHumidity, bool isFah
|
|||||||
return isFahrenheit ? hi : convertFtoC(hi);
|
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
|
// Check if sensor was read less than two seconds ago and return early
|
||||||
// to use last reading.
|
// to use last reading.
|
||||||
uint32_t currenttime = millis();
|
uint32_t currenttime = millis();
|
||||||
|
2
DHT.h
2
DHT.h
@ -44,7 +44,7 @@ class DHT {
|
|||||||
float convertFtoC(float);
|
float convertFtoC(float);
|
||||||
float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=true);
|
float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=true);
|
||||||
float readHumidity(bool force=false);
|
float readHumidity(bool force=false);
|
||||||
boolean read(bool force=false);
|
bool read(bool force=false);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t data[5];
|
uint8_t data[5];
|
||||||
|
Loading…
Reference in New Issue
Block a user