2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

WS300: fix for device number 9

git-svn-id: https://svn.fhem.de/fhem/trunk@1945 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-10-11 18:09:54 +00:00
parent e35443b946
commit 9d3125cb39

View File

@ -397,12 +397,12 @@ WS300_Parse($$)
}
else
{
readingsBeginUpdate($def);
$def = $modules{WS300}{defptr}{9};
$def->{READINGS}{$txt[0]}{VAL} = 0 if(!$def->{READINGS});
$ref = $def->{READINGS};
readingsBeginUpdate($def);
$t = hex($a[62+$offs].$a[63+$offs].$a[64+$offs].$a[65+$offs]);
$t -= 65535 if( $t > 32767 );
$t /= 10.0;