mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
00_MYSENSORS.pm: fix MYSENSORS usb gateway for Windows (Forum: #61435)
git-svn-id: https://svn.fhem.de/fhem/trunk@15106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
056d80f3d4
commit
3b1da1ba4c
@ -195,6 +195,11 @@ sub Stop($) {
|
||||
sub Ready($) {
|
||||
my $hash = shift;
|
||||
return DevIo_OpenDev($hash, 1, "MYSENSORS::Init") if($hash->{STATE} eq "disconnected");
|
||||
if(defined($hash->{USBDev})) {
|
||||
my $po = $hash->{USBDev};
|
||||
my ( $BlockingFlags, $InBytes, $OutBytes, $ErrorFlags ) = $po->status;
|
||||
return ( $InBytes > 0 );
|
||||
}
|
||||
}
|
||||
|
||||
sub Init($) {
|
||||
|
Loading…
Reference in New Issue
Block a user