2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

13_KS300.pm: avoid the warning

git-svn-id: https://svn.fhem.de/fhem/trunk@26863 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-12-16 13:54:35 +00:00
parent 2de2c14bbd
commit 482dbbbe9a

View File

@ -205,12 +205,12 @@ KS300_Parse($$)
$v[3] = "$a[22]$a[21]" + 0;
$v[4] = "$a[20]$a[19].$a[18]" + 0;
$v[4] = sprintf("%0.1f", $v[4]);
$v[4] = -$v[4] if(hex($v[8]) & 8); # Negative temp
$v[5] = ((hex($a[17]) & 0x2) || $haverain) ? "yes" : "no";
$v[6] = $a[29];
$v[7] = $a[16];
$v[8] = $a[17];
$v[9] = KS300_windIndex($v[2]);
$v[4] = -$v[4] if(hex($v[8]) & 8); # Negative temp
my $std = AttrVal($name, "strangeTempDiff", 0);
if($std) {