2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

00_ZWave.pm: Fix for Windows (forum #39053)

git-svn-id: https://svn.fhem.de/fhem/trunk@8954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-07-13 16:01:48 +00:00
parent cc8daed492
commit 3085d8e90d
2 changed files with 10 additions and 1 deletions

View File

@ -585,7 +585,9 @@ ZWave_ProcessSendStack($)
ZWDongle_shiftSendStack($hash, 1, "ERROR: max send retries reached");
}
return if(!@{$hash->{SendStack}} || $hash->{WaitForAck} || !$hash->{FD});
return if(!@{$hash->{SendStack}} ||
$hash->{WaitForAck} ||
!DevIo_IsOpen($hash));
my $msg = $hash->{SendStack}->[0];

View File

@ -405,6 +405,13 @@ DevIo_CloseDev($@)
delete($hash->{EXCEPT_FD});
}
sub
DevIo_IsOpen($)
{
my ($hash) = @_;
return ($hash->{TCPDev} || $hash->{USBDev} || $hash->{DIODev});
}
sub
DevIo_Disconnected($)
{