mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
MAXLAN: correctly dispatch and display error
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4179 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e878676c63
commit
aafd415d4e
@ -643,7 +643,9 @@ MAXLAN_Parse($$)
|
|||||||
}else{
|
}else{
|
||||||
Log 2, "MAXLAN_Parse: Got status for unimplemented device type $shash->{type}";
|
Log 2, "MAXLAN_Parse: Got status for unimplemented device type $shash->{type}";
|
||||||
}
|
}
|
||||||
} # if($valid)
|
} else {
|
||||||
|
Dispatch($hash, "MAX,1,Error,$addr,Error $errframetype in Msg type L", {});
|
||||||
|
}
|
||||||
$bindata=substr($bindata,$len+1); #+1 because the len field is not counted
|
$bindata=substr($bindata,$len+1); #+1 because the len field is not counted
|
||||||
} # while(length($bindata))
|
} # while(length($bindata))
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ MAX_Parse($$)
|
|||||||
if(@args == 0) {
|
if(@args == 0) {
|
||||||
delete $shash->{ERROR} if(exists($shash->{ERROR}));
|
delete $shash->{ERROR} if(exists($shash->{ERROR}));
|
||||||
} else {
|
} else {
|
||||||
$shash->{ERROR} = join(",",$args[0]);
|
$shash->{ERROR} = join(",",@args);
|
||||||
}
|
}
|
||||||
|
|
||||||
} elsif($msgtype eq "AckWakeUp") {
|
} elsif($msgtype eq "AckWakeUp") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user