2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-15 04:20:56 +00:00

00_ZWDongle.pm: fix some issues when connecting via network (Forum #38315)

git-svn-id: https://svn.fhem.de/fhem/trunk@8908 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-07-06 17:52:14 +00:00
parent 5f1116c2bb
commit f4814cc6b7

View File

@ -276,6 +276,7 @@ ZWDongle_Set($@)
Log3 $hash, 4, "ZWDongle set $name $type ".join(" ",@a);
if($type eq "reopen") {
return if(AttrVal($name, "dummy",undef) || AttrVal($name, "disable",undef));
delete $hash->{NEXT_OPEN};
DevIo_CloseDev($hash);
sleep(1);
DevIo_OpenDev($hash, 0, "ZWDongle_DoInit");
@ -589,7 +590,7 @@ ZWave_ProcessSendStack($)
ZWDongle_shiftSendStack($hash, 1, "ERROR: max send retries reached");
}
return if(!@{$hash->{SendStack}} || $hash->{WaitForAck});
return if(!@{$hash->{SendStack}} || $hash->{WaitForAck} || !$hash->{FD});
my $msg = $hash->{SendStack}->[0];