00_ZWDongle.pm: fix some issues when connecting via network (Forum #38315)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8908 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user