newdevice: Added further sensor support for Geist Watchdog (#7143)

* newdevice: Added further sensor support for Geist Watchdog

* relaxed if check
This commit is contained in:
Neil Lathwood
2017-08-19 20:22:23 +01:00
committed by GitHub
parent 31993387e4
commit 25d79ce9d7
9 changed files with 168 additions and 4 deletions

View File

@@ -1675,6 +1675,19 @@ function fahrenheit_to_celsius($scale, $value)
}
return sprintf('%.02f', $value);
}
/**
*
* Simply passes the fahrenheit value to fahrenheit_to_celsius()
*
* @param $value
* @return float
*/
function conv_fahrenheit($value)
{
return fahrenheit_to_celsius('fahrenheit', $value);
}
function uw_to_dbm($value)
{
return 10 * log10($value / 1000);