MAXLAN: Suppress "unsolicated" message in pairmode for N:

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2299 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2012-12-09 15:02:11 +00:00
parent 2be1e2f017
commit 26c6c561dc

View File

@@ -327,7 +327,9 @@ MAXLAN_Read($)
while(1) { while(1) {
my $rmsg = MAXLAN_ReadSingleResponse($hash, 0); my $rmsg = MAXLAN_ReadSingleResponse($hash, 0);
last if(!$rmsg); last if(!$rmsg);
Log 2, "Unsolicated response from Cube: $rmsg"; # The Msg N: .... is the only one that may come spontanously from
# the cube while we are in pairmode
Log 2, "Unsolicated response from Cube: $rmsg" unless($hash->{pairmode} and substr($rmsg,0,2) eq "N:");
MAXLAN_Parse($hash, $rmsg); MAXLAN_Parse($hash, $rmsg);
} }
} }