neutrino: fix input device repeat setting for pre 2.6.17 kernels

This commit is contained in:
Stefan Seyfried
2012-03-25 20:08:38 +02:00
parent 63178c1e2a
commit 146c46da8e
2 changed files with 12 additions and 10 deletions

View File

@@ -155,7 +155,7 @@ void CRCInput::open()
for (int i = 0; i < NUMBER_OF_EVENT_DEVICES; i++)
{
if ((fd_rc[i] = ::open(RC_EVENT_DEVICE[i], O_RDONLY)) == -1)
if ((fd_rc[i] = ::open(RC_EVENT_DEVICE[i], O_RDWR)) == -1)
perror(RC_EVENT_DEVICE[i]);
else
{