mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 17:36:39 +00:00
00_ZWDongle.pm: excludeDead added to neighborList (Forum #43735)
git-svn-id: https://svn.fhem.de/fhem/trunk@10034 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6572ee3b70
commit
7596515649
@ -344,8 +344,9 @@ ZWDongle_Get($@)
|
||||
if($cmd eq "neighborList") {
|
||||
my @b;
|
||||
@b = grep(!/onlyRep/i, @a); my $onlyRep = (@b != @a); @a = @b;
|
||||
$gets{neighborList} = "80%02x01".($onlyRep ? "01":"00");
|
||||
return "Usage: get $name $cmd [onlyRep] nodeId"
|
||||
@b = grep(!/excludeDead/i, @a); my $exclDead = (@b != @a); @a = @b;
|
||||
$gets{neighborList} = "80%02x".($exclDead ?"00":"01").($onlyRep ?"01":"00");
|
||||
return "Usage: get $name $cmd [excludeDead] [onlyRep] nodeId"
|
||||
if(int(@a) != 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user