mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +00:00
98_ComfoAir.pm: little bug fix
git-svn-id: https://svn.fhem.de/fhem/trunk@27160 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
feadad72a6
commit
1a982b70b7
@ -827,9 +827,11 @@ sub ReadyFn {
|
||||
|
||||
# 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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user