mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +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
e538b59e95
commit
d52b398ed2
@ -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…
Reference in New Issue
Block a user