mirror of https://github.com/arendst/Tasmota.git
Add ConvertPress()
This commit is contained in:
parent
1a86c65339
commit
db4d7ed277
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue