mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
MAX: clear Error on reconnect
git-svn-id: https://svn.fhem.de/fhem/trunk@2187 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
53465426d2
commit
7c2095db99
@ -462,6 +462,9 @@ MAXLAN_Parse($$)
|
||||
Log 2, "Got configdata for unimplemented devicetype $devicetype";
|
||||
}
|
||||
|
||||
#Clear Error
|
||||
Dispatch($hash, "MAX,Error,$addr", {RAWMSG => $rmsg});
|
||||
|
||||
#Check if it is already recorded in devices
|
||||
my $found = 0;
|
||||
foreach (@{$hash->{devices}}) {
|
||||
|
@ -302,7 +302,11 @@ MAX_Parse($$)
|
||||
$shash->{windowOpenDuration} = $args[8];
|
||||
|
||||
} elsif($msgtype eq "Error") {
|
||||
$shash->{ERROR} = join(",",$args[0]);
|
||||
if(@args == 0) {
|
||||
delete $shash->{ERROR} if(exists($shash->{ERROR}));
|
||||
} else {
|
||||
$shash->{ERROR} = join(",",$args[0]);
|
||||
}
|
||||
|
||||
} else {
|
||||
Log 1, "MAX_Parse: Unknown message $msgtype";
|
||||
|
Loading…
Reference in New Issue
Block a user