Update evdevDriver.py
This commit is contained in:
parent
abf92cda6b
commit
37a7e22154
@ -52,15 +52,14 @@ class driver(inputDriver):
|
|||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
global _evdevAvailableError
|
global _evdevAvailableError
|
||||||
global _udevAvailableError
|
global _udevAvailableError
|
||||||
currError = ' '
|
|
||||||
if not _evdevAvailable:
|
|
||||||
currError += _evdevAvailableError
|
|
||||||
if not _udevAvailable:
|
if not _udevAvailable:
|
||||||
currError += ' ' + _udevAvailableError
|
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + _udevAvailableError, debug.debugLevel.ERROR)
|
||||||
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + currError, debug.debugLevel.ERROR)
|
if not _evdevAvailable:
|
||||||
return
|
self.env['runtime']['debug'].writeDebugOut('InputDriver:' + _evdevAvailableError, debug.debugLevel.ERROR)
|
||||||
|
return
|
||||||
|
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.plugInputDeviceWatchdogUdev)
|
if _udevAvailable:
|
||||||
|
self.env['runtime']['processManager'].addCustomEventThread(self.plugInputDeviceWatchdogUdev)
|
||||||
self.env['runtime']['processManager'].addCustomEventThread(self.inputWatchdog)
|
self.env['runtime']['processManager'].addCustomEventThread(self.inputWatchdog)
|
||||||
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
def plugInputDeviceWatchdogUdev(self,active , eventQueue):
|
||||||
context = pyudev.Context()
|
context = pyudev.Context()
|
||||||
|
Loading…
Reference in New Issue
Block a user