Skip to content

Commit 1c918f4

Browse files
authored
Merge pull request #3 from rharkes/patch-1
RHtoAbsolute missing return
2 parents 103b3ee + 87a86a9 commit 1c918f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/Example3_Humidity/Example3_Humidity.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ double RHtoAbsolute (float relHumidity, float tempC) {
7373
double eSat = 6.11 * pow(10.0, (7.5 * tempC / (237.7 + tempC)));
7474
double vaporPressure = (relHumidity * eSat) / 100; //millibars
7575
double absHumidity = 1000 * vaporPressure * 100 / ((tempC + 273) * 461.5); //Ideal gas law with unit conversions
76+
return absHumidity;
7677
}
7778

7879
uint16_t doubleToFixedPoint( double number) {

0 commit comments

Comments
 (0)