2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

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:
rudolfkoenig 2014-10-12 07:11:56 +00:00
parent c6cb15f30b
commit cb16c782b3

View File

@ -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";