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:
rudolfkoenig 2013-07-23 10:14:27 +00:00
parent 169daeefbd
commit 53d3acb48b

View File

@ -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";