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:
mgehre 2013-11-08 10:44:43 +00:00
parent e878676c63
commit aafd415d4e
2 changed files with 4 additions and 2 deletions

View File

@ -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))

View File

@ -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") {