From 482dbbbe9abd8c7635ca8ae2f8360e7fe6727064 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 16 Dec 2022 13:54:35 +0000 Subject: [PATCH] 13_KS300.pm: avoid the warning git-svn-id: https://svn.fhem.de/fhem/trunk@26863 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/13_KS300.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/13_KS300.pm b/fhem/FHEM/13_KS300.pm index b32d62d42..8579b8538 100644 --- a/fhem/FHEM/13_KS300.pm +++ b/fhem/FHEM/13_KS300.pm @@ -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) {