From 3bba771f8c1be749241a5ab8fc980df0510f31a0 Mon Sep 17 00:00:00 2001 From: Giuseppe Masino Date: Wed, 27 Jun 2018 19:18:17 +0200 Subject: [PATCH] Changed boolean to bool --- DHT.cpp | 2 +- DHT.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DHT.cpp b/DHT.cpp index 86ad91c..b051670 100644 --- a/DHT.cpp +++ b/DHT.cpp @@ -120,7 +120,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(); diff --git a/DHT.h b/DHT.h index d81f6db..dd52090 100644 --- a/DHT.h +++ b/DHT.h @@ -44,7 +44,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];