MAX: Fix previous commit

git-svn-id: https://svn.fhem.de/fhem/trunk@7011 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2014-11-17 19:10:44 +00:00
parent 1fb75fd13f
commit 84ffce6751

View File

@@ -478,8 +478,7 @@ CUL_MAX_SendQueueHandler($$)
|| $modules{MAX}{defptr}{$packet->{dst}}{wakeUpUntil} < gettimeofday()))) ? 1 : 0;
#Send to CUL
#my ($credit10ms) = (CommandGet("","$hash->{IODev}{NAME} credit10ms") =~ /[^ ]* [^ ]* => (.*)/);
my $credit10ms = 900;
my ($credit10ms) = (CommandGet("","$hash->{IODev}{NAME} credit10ms") =~ /[^ ]* [^ ]* => (.*)/);
if($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;