mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
controlapi: add rc fallback device
Origin commit data
------------------
Branch: ni/coolstream
Commit: 50321a1af4
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-10-03 (Thu, 03 Oct 2019)
Origin message was:
------------------
- controlapi: add rc fallback device
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -69,6 +69,7 @@ extern CBouquetManager *g_bouquetManager;
|
||||
#else
|
||||
#define RC_DEVICE "/dev/input/event1"
|
||||
#endif
|
||||
#define RC_DEVICE_FALLBACK "/dev/input/event0"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//=============================================================================
|
||||
@@ -982,6 +983,8 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh)
|
||||
#endif
|
||||
#if 1
|
||||
int evd = open(RC_DEVICE, O_RDWR);
|
||||
if (evd < 0)
|
||||
evd = open(RC_DEVICE_FALLBACK, O_RDWR);
|
||||
if (evd < 0) {
|
||||
perror("opening " RC_DEVICE " failed");
|
||||
hh->SendError();
|
||||
|
Reference in New Issue
Block a user