mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-29 23:47:10 +00:00
00_ZWDongle.pm: PRIORITY_ROUTE patch from krikan, Forum #61359
git-svn-id: https://svn.fhem.de/fhem/trunk@15478 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
421b1d2826
commit
16bb7afd4d
@ -547,7 +547,10 @@ ZWDongle_Get($@)
|
|||||||
} elsif($cmd eq "routeFor") { ############################
|
} elsif($cmd eq "routeFor") { ############################
|
||||||
my $homeId = $hash->{homeId};
|
my $homeId = $hash->{homeId};
|
||||||
my @list;
|
my @list;
|
||||||
for(my $off=6; $off<16; $off+=2) {
|
my $e = hex(substr($msg, 6, 2));
|
||||||
|
push @list, ($e==1 ? "last": ($e==2 ? "next":"application"))
|
||||||
|
if($e !=0);
|
||||||
|
for(my $off=8; $off<16; $off+=2) {
|
||||||
my $dec = hex(substr($msg, $off, 2));
|
my $dec = hex(substr($msg, $off, 2));
|
||||||
my $hex = sprintf("%02x", $dec);
|
my $hex = sprintf("%02x", $dec);
|
||||||
my $h = ($hex eq $hash->{nodeIdHex} ?
|
my $h = ($hex eq $hash->{nodeIdHex} ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user