Skip to content

Commit

Permalink
Update SparkFun_Si7021_Breakout_Library.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfrancis authored Jul 19, 2017
1 parent 082812d commit a75f00b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ float Weather::readTemp()
{
// Read temperature from previous RH measurement.
uint16_t temp_Code = makeMeasurment(TEMP_PREV);
float result = (175.25*temp_Code/65536)-46.85;
float result = (175.72*temp_Code/65536)-46.85;
return result;
}

float Weather::getTemp()
{
// Measure temperature
uint16_t temp_Code = makeMeasurment(TEMP_MEASURE_NOHOLD);
float result = (175.25*temp_Code/65536)-46.85;
float result = (175.72*temp_Code/65536)-46.85;
return result;
}
//Give me temperature in fahrenheit!
Expand Down

0 comments on commit a75f00b

Please sign in to comment.