2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 08:11:44 +00:00

Some fixes for network mode

git-svn-id: https://svn.fhem.de/fhem/trunk@2777 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-02-20 08:02:01 +00:00
parent d6b61795c8
commit 70bd74eb73

View File

@ -361,7 +361,7 @@ ZWDongle_DoInit($)
my $hash = shift; my $hash = shift;
my $name = $hash->{NAME}; my $name = $hash->{NAME};
DevIo_SetHwHandshake($hash); DevIo_SetHwHandshake($hash) if($hash->{USBDev});
ZWDongle_Clear($hash); ZWDongle_Clear($hash);
ZWDongle_Get($hash, $name, "devList"); # Make the following query faster (?) ZWDongle_Get($hash, $name, "devList"); # Make the following query faster (?)
ZWDongle_Get($hash, $name, "homeId"); ZWDongle_Get($hash, $name, "homeId");
@ -530,9 +530,12 @@ ZWDongle_Ready($)
# This is relevant for windows/USB only # This is relevant for windows/USB only
my $po = $hash->{USBDev}; my $po = $hash->{USBDev};
if($po) {
my ($BlockingFlags, $InBytes, $OutBytes, $ErrorFlags) = $po->status; my ($BlockingFlags, $InBytes, $OutBytes, $ErrorFlags) = $po->status;
return ($InBytes>0); return ($InBytes>0);
} }
return 0;
}
1; 1;