Skip to content

Commit 562a487

Browse files
Merge pull request #47 from jongho123/master
update dht.cpp. mod readHumidity().
2 parents c978977 + 89937d5 commit 562a487

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)