00_LIRC.pm: Use select instead of Poll (Forum #27821)
git-svn-id: https://svn.fhem.de/fhem/trunk@6748 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -57,9 +57,9 @@ LIRC_Define($$)
|
||||
|
||||
$hash->{LircObj} = $lirc;
|
||||
|
||||
$hash->{FD} = $lirc->{sock}; # is not working and sets timeout to undefined
|
||||
$hash->{FD} = $lirc->{sock}->fileno; # is not working and sets timeout to undefined
|
||||
$selectlist{"$name"} = $hash; #
|
||||
$readyfnlist{"$name"} = $hash; # thats why we start polling
|
||||
#$readyfnlist{"$name"} = $hash; # thats why we start polling
|
||||
$hash->{SelectObj} = $select;
|
||||
$hash->{DeviceName} = $name;
|
||||
$hash->{STATE} = "Opened";
|
||||
|
||||
Reference in New Issue
Block a user