YAMAHA_BD: use better if-condition for response parsing
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -573,7 +573,7 @@ YAMAHA_BD_ParseResponse($$$)
|
||||
my $arg = $param->{arg};
|
||||
|
||||
|
||||
if($err)
|
||||
if($err ne "")
|
||||
{
|
||||
Log3 $name, 4, "YAMAHA_BD ($name) - error while executing \"$cmd".(defined($arg) ? " ".$arg : "")."\": $err";
|
||||
|
||||
@@ -585,7 +585,7 @@ YAMAHA_BD_ParseResponse($$$)
|
||||
}
|
||||
|
||||
}
|
||||
elsif($data)
|
||||
elsif($data ne "")
|
||||
{
|
||||
|
||||
Log3 $name, 5, "YAMAHA_BD ($name) - got HTTP response for \"$cmd".(defined($arg) ? " ".$arg : "")."\": $data";
|
||||
|
||||
Reference in New Issue
Block a user