30_DUOFERN: fix temperature value

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
telekatz 2016-02-24 21:31:22 +00:00
parent 55c33e71ad
commit dd390be56e

View File

@ -1021,7 +1021,7 @@ DUOFERN_Parse($$)
my $brightness = (hex(substr($msg, 8, 4)) & 0x01FF) * $brightnessExp; my $brightness = (hex(substr($msg, 8, 4)) & 0x01FF) * $brightnessExp;
my $sunDirection = hex(substr($msg, 14, 2)) * 1.5 ; my $sunDirection = hex(substr($msg, 14, 2)) * 1.5 ;
my $sunHeight = hex(substr($msg, 16, 2)) - 90 ; my $sunHeight = hex(substr($msg, 16, 2)) - 90 ;
my $temperature = (hex(substr($msg, 18, 4)) & 0x7FFF)/10 - 40 ; my $temperature = ((hex(substr($msg, 18, 4)) & 0x7FFF)-400)/10 ;
my $isRaining = (hex(substr($msg, 18, 4)) & 0x8000 ? 1 : 0); my $isRaining = (hex(substr($msg, 18, 4)) & 0x8000 ? 1 : 0);
my $wind = (hex(substr($msg, 22, 4)) & 0x03FF) / 10; my $wind = (hex(substr($msg, 22, 4)) & 0x03FF) / 10;