Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Adafruit_DHT_Driver/Adafruit_DHT.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ int main(int argc, char **argv)


printf("Using pin #%d\n", dhtpin);
readDHT(type, dhtpin);
return 0;
return readDHT(type, dhtpin);

} // main

Expand Down Expand Up @@ -141,8 +140,8 @@ int readDHT(int type, int pin) {
if (data[2] & 0x80) f *= -1;
printf("Temp = %.1f *C, Hum = %.1f \%\n", f, h);
}
return 1;
return 0;
}

return 0;
return 1;
}