mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +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
|
||||
#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};
|
||||
|
||||
} elsif($msgType eq "TimeInformation") {
|
||||
@ -479,7 +479,7 @@ CUL_MAX_SendQueueHandler($$)
|
||||
|
||||
#Send to CUL
|
||||
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.";
|
||||
$timeout += 5;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user