From 54e88b0c9309443f22ce555e1295546278a1c8eb Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 7 Mar 2018 00:04:07 +0100 Subject: [PATCH] fix command handling --- src/fenrir/inputDriver/evdevDriver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/inputDriver/evdevDriver.py b/src/fenrir/inputDriver/evdevDriver.py index c3c35c5e..7c3ba4c6 100644 --- a/src/fenrir/inputDriver/evdevDriver.py +++ b/src/fenrir/inputDriver/evdevDriver.py @@ -66,7 +66,7 @@ class driver(inputDriver): if devices: while monitor.poll(0.5): time.sleep(0.08) - #eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None}) + eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None}) return time.time() def plugInputDeviceWatchdogTimer(self, active): time.sleep(2.5) @@ -77,11 +77,11 @@ class driver(inputDriver): r, w, x = select(self.iDevices, [], [], 0.5) for fd in r: event = None + foreward = False try: event = self.iDevices[fd].read_one() except: self.removeDevice(fd) - foreward = False while(event): self.env['input']['eventBuffer'].append( [self.iDevices[fd], self.uDevices[fd], event]) if event.type == evdev.events.EV_KEY: