2
0
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 )

git-svn-id: https://svn.fhem.de/fhem/trunk@10034 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-28 15:15:19 +00:00
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);
}