mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
YAMAHA_BD: use better if-condition for response parsing
git-svn-id: https://svn.fhem.de/fhem/trunk@6006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a226c3ef82
commit
241406bfd6
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user