mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Forcig S300TH temp to 1 decimal place
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3482 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
169daeefbd
commit
53d3acb48b
@ -237,7 +237,7 @@ CUL_WS_Parse($$)
|
||||
}
|
||||
|
||||
$sgn = ($firstbyte&8) ? -1 : 1;
|
||||
$tmp = $sgn * ($a[6].$a[3].".".$a[4]) + $hash->{corr1};
|
||||
$tmp = sprintf("%0.1f", $sgn * ($a[6].$a[3].".".$a[4]) + $hash->{corr1});
|
||||
$hum = ($a[7].$a[8].".".$a[5]) + $hash->{corr2};
|
||||
$val = "T: $tmp H: $hum";
|
||||
$devtype = "S300TH";
|
||||
|
Loading…
x
Reference in New Issue
Block a user