Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AM2321 by
Revision 2:dd902435d402, committed 2015-08-11
- Comitter:
- HB9GAA
- Date:
- Tue Aug 11 09:41:47 2015 +0000
- Parent:
- 1:f42b99c425e8
- Commit message:
- DewPoint
Changed in this revision
AM2321.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f42b99c425e8 -r dd902435d402 AM2321.cpp --- a/AM2321.cpp Tue Aug 11 09:13:23 2015 +0000 +++ b/AM2321.cpp Tue Aug 11 09:41:47 2015 +0000 @@ -117,7 +117,7 @@ { float H, Dp; - H = (log(_result.humidity) - 2) / 0.4343 + (17.62 * _result.temperature) / (243.12 + _result.temperature); + H = (log10(_result.humidity) - 2) / 0.4343 + (17.62 * _result.temperature) / (243.12 + _result.temperature); Dp = 243.12 * H / (17.62 - H); //das ist der Taupunkt in Celsius - return Dp/10; + return Dp; }