mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
MAX: more robustness checks
git-svn-id: https://svn.fhem.de/fhem/trunk@7067 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
29bf602536
commit
e60d8f4029
@ -290,7 +290,7 @@ CUL_MAX_Parse($$)
|
|||||||
}
|
}
|
||||||
#Handle outgoing messages to that ShutterContact. It is only awake shortly
|
#Handle outgoing messages to that ShutterContact. It is only awake shortly
|
||||||
#after sending an Ack to a PairPong
|
#after sending an Ack to a PairPong
|
||||||
CUL_MAX_SendQueueHandler($shash, $src) if($modules{MAX}{defptr}{$src}{type} eq "ShutterContact");
|
CUL_MAX_SendQueueHandler($shash, $src) if(exists($modules{MAX}{defptr}{$src}) && $modules{MAX}{defptr}{$src}{type} eq "ShutterContact");
|
||||||
return $shash->{NAME};
|
return $shash->{NAME};
|
||||||
|
|
||||||
} elsif($msgType eq "TimeInformation") {
|
} elsif($msgType eq "TimeInformation") {
|
||||||
@ -479,7 +479,7 @@ CUL_MAX_SendQueueHandler($$)
|
|||||||
|
|
||||||
#Send to CUL
|
#Send to CUL
|
||||||
my ($credit10ms) = (CommandGet("","$hash->{IODev}{NAME} credit10ms") =~ /[^ ]* [^ ]* => (.*)/);
|
my ($credit10ms) = (CommandGet("","$hash->{IODev}{NAME} credit10ms") =~ /[^ ]* [^ ]* => (.*)/);
|
||||||
if($credit10ms eq "No answer") {
|
if(!defined($credit10ms) || $credit10ms eq "No answer") {
|
||||||
Log3 $hash, 1, "Error in CUL_MAX_SendQueueHandler: CUL $hash->{IODev}{NAME} did not answer request for current credits. Waiting 5 seconds.";
|
Log3 $hash, 1, "Error in CUL_MAX_SendQueueHandler: CUL $hash->{IODev}{NAME} did not answer request for current credits. Waiting 5 seconds.";
|
||||||
$timeout += 5;
|
$timeout += 5;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user