Format-Fix

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1803 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-08-16 12:24:35 +00:00
parent c4f0484135
commit d0c86e3b58

View File

@ -428,7 +428,7 @@ EnOcean_Parse($$)
####################################
# $db_1 is the temperature where 0x00 = 40°C and 0xFF 0°C
my $temp = sprintf "%3d", $db_1;
$temp = sprintf "%f.1", ( 40 - $temp * 40 / 255 ) ;
$temp = sprintf "%0.1f", ( 40 - $temp * 40 / 255 ) ;
push @event, "3:temperature:$temp";
push @event, "3:state:$temp";