2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

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

git-svn-id: https://svn.fhem.de/fhem/trunk@10050 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-29 15:31:31 +00:00
parent 87ff20ba81
commit 4b6820eedd

View File

@ -824,7 +824,7 @@ ZWDongle_Ready($)
return undef if (IsDisabled($hash->{NAME}));
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
my $po = $hash->{USBDev};