mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
30_DUOFERN: fix temperature value
git-svn-id: https://svn.fhem.de/fhem/trunk@10931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7fbadc6363
commit
4fac5d69d8
@ -1021,7 +1021,7 @@ DUOFERN_Parse($$)
|
||||
my $brightness = (hex(substr($msg, 8, 4)) & 0x01FF) * $brightnessExp;
|
||||
my $sunDirection = hex(substr($msg, 14, 2)) * 1.5 ;
|
||||
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 $wind = (hex(substr($msg, 22, 4)) & 0x03FF) / 10;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user