2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Special fhtsoftbuffer handling for CUL

git-svn-id: https://svn.fhem.de/fhem/trunk@735 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2010-10-24 18:36:54 +00:00
parent 8dc03432fc
commit 72c3f18ae0

View File

@ -565,7 +565,6 @@ doSoftBuffer($)
$count++;
my $h = $io->{SOFTBUFFER}{$key};
my $name = $h->{HASH}->{NAME};
if($h->{NSENT}) {
next if($now-$h->{SENDTIME} < $retryafter);
my $retry = $attr{$name}{retrycount};
@ -575,6 +574,21 @@ doSoftBuffer($)
delete($io->{SOFTBUFFER}{$key});
next;
}
}
# Check if it is still in th CUL buffer.
if($io->{TYPE} eq "CUL") {
my $cul = CallFn($io->{NAME}, "GetFn", $io, (" ", "raw", "T02"));
my $arg = uc($h->{ARG});
$arg =~ s/^020183//;
$arg =~ s/(....)/,$1/g;
$arg =~ s/,(....),/$1:/;
$arg = uc($arg);
if($cul =~ m/$arg/) {
Log GetLogLevel($name,3),
"$name set $h->{CMD}: still in the culfw buffer, wont send";
next;
}
}
$fhzbuflen = getFhtBuffer($io) if($fhzbuflen == -999);
@ -587,7 +601,6 @@ doSoftBuffer($)
$fhzbuflen -= $arglen;
$h->{SENDTIME} = $now;
$h->{NSENT}++;
}
if($count && !$io->{SOFTBUFFERTIMER}) {