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:
parent
cc8daed492
commit
3085d8e90d
@ -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];
|
||||
|
||||
|
@ -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($)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user