10_FBDECT.pm: Remove warning when using open/closed (Forum #94559)

git-svn-id: https://svn.fhem.de/fhem/trunk@17992 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-12-17 08:59:34 +00:00
parent 3119d5c747
commit 8d18ae812e

View File

@@ -120,8 +120,9 @@ FBDECT_SetHttp($@)
return "desired-temp must be between 7.5 and 28.5"
if($a[2] !~ m/^[\d.]+$/ || $a[2] < 7.5 || $a[2] > 28.5)
}
my $val = ($cmd eq "open" || $a[2]==28.5) ? 254 :
($cmd eq "closed"|| $a[2]== 7.5) ? 253: int(2*$a[2]);
my $a2 = ($a[2] ? $a[2] : 0);
my $val = ($cmd eq "open" || $a2==28.5) ? 254 :
($cmd eq "closed"|| $a2== 7.5) ? 253: int(2*$a2);
IOWrite($hash, ReadingsVal($name,"AIN",0),"sethkrtsoll&param=$val");
return undef;
}