Update evdevDriver.py

This commit is contained in:
chrys87 2018-03-06 13:58:32 +01:00 committed by GitHub
parent 23f292dfa7
commit 5241bfa8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ class driver(inputDriver):
devices = monitor.poll(2)
if devices:
while monitor.poll(0.5):
time.sleep(0.2)
time.sleep(0.08)
eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None})
return time.time()
def plugInputDeviceWatchdogTimer(self, active):
@ -72,10 +72,10 @@ class driver(inputDriver):
return time.time()
def inputWatchdog(self,active , params):
try:
deviceFd = []
while self.watchDog.value == 0:
if active.value == 0:
return
time.sleep(0.01)
r = []
while r == []:
if active.value == 0: