Add ConvertPress()

This commit is contained in:
eeak 2018-11-01 17:36:22 +02:00 committed by GitHub
parent 1a86c65339
commit db4d7ed277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -475,6 +475,16 @@ char TempUnit()
return (Settings.flag.temperature_conversion) ? 'F' : 'C';
}
float ConvertPress(float p)
{
float result = p;
if (!isnan(p)) {
result = p * 0.75006375541921; // mmHg
}
return result;
}
void SetGlobalValues(float temperature, float humidity)
{
global_update = uptime;