mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
correct CUL interworking - initialized
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3887 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c32bbd560d
commit
ecbc6c8071
@ -3070,7 +3070,7 @@ sub CUL_HM_sndIfOpen($) {
|
||||
my(undef,$io) = split(':',$_[0]);
|
||||
RemoveInternalTimer("sndIfOpen:$io");# should not be necessary, but
|
||||
my $ioHash = $defs{$io};
|
||||
if ( $ioHash->{STATE} != m/^(opened|Initialized)$/
|
||||
if ( $ioHash->{STATE} !~ m/^(opened|Initialized)$/
|
||||
||(defined $ioHash->{XmitOpen} && $ioHash->{XmitOpen} == 0)
|
||||
# ||$modules{CUL_HM}{prot}{rspPend}>=$maxPendCmds
|
||||
){#still no send allowed
|
||||
@ -3106,7 +3106,7 @@ sub CUL_HM_SndCmd($$) {
|
||||
return if(!$io);
|
||||
my $ioName = $io->{NAME};
|
||||
if ((hex substr($cmd,2,2) & 0x20) && ( # check for commands with resp-req
|
||||
$io->{STATE} != m/^(opened|Initialized)$/ # we need to queue
|
||||
$io->{STATE} !~ m/^(opened|Initialized)$/ # we need to queue
|
||||
|| $modules{CUL_HM}{$ioName}{tmr} # queue already running
|
||||
||(defined $io->{XmitOpen} && $io->{XmitOpen} == 0)#overload, dont send
|
||||
# ||$modules{CUL_HM}{prot}{rspPend}>=$maxPendCmds
|
||||
|
Loading…
x
Reference in New Issue
Block a user