mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +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:
parent
5f1116c2bb
commit
f4814cc6b7
@ -276,6 +276,7 @@ ZWDongle_Set($@)
|
|||||||
Log3 $hash, 4, "ZWDongle set $name $type ".join(" ",@a);
|
Log3 $hash, 4, "ZWDongle set $name $type ".join(" ",@a);
|
||||||
if($type eq "reopen") {
|
if($type eq "reopen") {
|
||||||
return if(AttrVal($name, "dummy",undef) || AttrVal($name, "disable",undef));
|
return if(AttrVal($name, "dummy",undef) || AttrVal($name, "disable",undef));
|
||||||
|
delete $hash->{NEXT_OPEN};
|
||||||
DevIo_CloseDev($hash);
|
DevIo_CloseDev($hash);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
DevIo_OpenDev($hash, 0, "ZWDongle_DoInit");
|
DevIo_OpenDev($hash, 0, "ZWDongle_DoInit");
|
||||||
@ -589,7 +590,7 @@ ZWave_ProcessSendStack($)
|
|||||||
ZWDongle_shiftSendStack($hash, 1, "ERROR: max send retries reached");
|
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];
|
my $msg = $hash->{SendStack}->[0];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user