Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryneedell committed Apr 27, 2018
1 parent 2ced07f commit 0ace718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_AM2320.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ float Adafruit_AM2320::readTemperature() {
uint16_t t = readRegister16(AM2320_REG_TEMP_H);
float ft;
if (t == 0xFFFF) return NAN;
// check sign bit - the temperature MSB is signd , bit 0-15 are mignitude
// check sign bit - the temperature MSB is signed , bit 0-15 are magnitude
if(t & 0x8000){
ft = -(int16_t)(t&0x7fff);
}
Expand Down

0 comments on commit 0ace718

Please sign in to comment.