Skip to content

Commit 89937d5

Browse files
committed
mod readHumidity(). using parameter 'force'
1 parent edcd0e0 commit 89937d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DHT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ float DHT::convertFtoC(float f) {
7171

7272
float DHT::readHumidity(bool force) {
7373
float f = NAN;
74-
if (read()) {
74+
if (read(force)) {
7575
switch (_type) {
7676
case DHT11:
7777
f = data[0];

0 commit comments

Comments
 (0)