Format-Fix

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

View File

@@ -428,7 +428,7 @@ EnOcean_Parse($$)
####################################
# $db_1 is the temperature where 0x00 = 40<34>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";