mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 23:06:05 +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:
parent
d6b61795c8
commit
70bd74eb73
@ -361,7 +361,7 @@ ZWDongle_DoInit($)
|
||||
my $hash = shift;
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
DevIo_SetHwHandshake($hash);
|
||||
DevIo_SetHwHandshake($hash) if($hash->{USBDev});
|
||||
ZWDongle_Clear($hash);
|
||||
ZWDongle_Get($hash, $name, "devList"); # Make the following query faster (?)
|
||||
ZWDongle_Get($hash, $name, "homeId");
|
||||
@ -530,8 +530,11 @@ ZWDongle_Ready($)
|
||||
|
||||
# This is relevant for windows/USB only
|
||||
my $po = $hash->{USBDev};
|
||||
my ($BlockingFlags, $InBytes, $OutBytes, $ErrorFlags) = $po->status;
|
||||
return ($InBytes>0);
|
||||
if($po) {
|
||||
my ($BlockingFlags, $InBytes, $OutBytes, $ErrorFlags) = $po->status;
|
||||
return ($InBytes>0);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user