Temperature should always have a number before the dot

git-svn-id: https://svn.fhem.de/fhem/trunk@1838 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-09-12 13:49:29 +00:00
parent 3e85293d73
commit fb396ba4dd

View File

@@ -363,7 +363,7 @@ EnOcean_Parse($$)
push @event, "3:tempSensor:" . (($db_2 & 0x04) ? "failed" : "ok");
push @event, "3:window:" . (($db_2 & 0x02) ? "open" : "closed");
push @event, "3:actuatorStatus:".(($db_2 & 0x01) ? "obstructed" : "ok");
push @event, "3:measured-temp:". sprintf "%.1f", ($db_1*40/255);
push @event, "3:measured-temp:". sprintf "%0.1f", ($db_1*40/255);
EnOcean_MD15Cmd($hash, $name, $db_1);
} elsif($model eq "PM101") {