00_ZWDongle.pm: fix patch from Forum #38315 (Forum #44874)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10050 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-29 15:31:31 +00:00
parent 02c17029b9
commit 3640ed2391

View File

@@ -824,7 +824,7 @@ ZWDongle_Ready($)
return undef if (IsDisabled($hash->{NAME})); return undef if (IsDisabled($hash->{NAME}));
return DevIo_OpenDev($hash, 1, "ZWDongle_DoInit") return DevIo_OpenDev($hash, 1, "ZWDongle_DoInit")
if(ReadingsVal($hash->{NAME}, "state", "disconnected")); if(ReadingsVal($hash->{NAME}, "state","") eq "disconnected");
# This is relevant for windows/USB only # This is relevant for windows/USB only
my $po = $hash->{USBDev}; my $po = $hash->{USBDev};