mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 03:44:30 +03:00
add template for main screen and buttons, need menu etc
This commit is contained in:
@@ -359,6 +359,6 @@ int BMP280_getdata(float *T, float *P, float *H){
|
||||
|
||||
// dewpoint calculation (T in degrC, H in percents)
|
||||
float Tdew(float T, float H){
|
||||
float gamma = 17.27f * T / (237.7f + T) + log(H/100.f);
|
||||
float gamma = 17.27f * T / (237.7f + T) + logf(H/100.f);
|
||||
return (237.7f * gamma)/(17.27 - gamma);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user