Skip to content

Commit

Permalink
Merge pull request adafruit#1 from BooBSD/patch-1
Browse files Browse the repository at this point in the history
Typo fixed - thanks BooBSD!
  • Loading branch information
ladyada committed Aug 24, 2012
2 parents 7de3615 + 21ae098 commit d11fb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_DHT_Driver/Adafruit_DHT.c
Expand Up @@ -125,7 +125,7 @@ int readDHT(int type, int pin) {
h = data[0] * 256 + data[1];
h /= 10;

f = (data[2] & 0x7F)* 256; + data[3];
f = (data[2] & 0x7F)* 256 + data[3];
f /= 10.0;
if (data[2] & 0x80) f *= -1;
printf("Temp = %.1f *C, Hum = %.1f \%\n", f, h);
Expand Down

0 comments on commit d11fb97

Please sign in to comment.