return None into event queue for empty

This commit is contained in:
chrys 2017-08-03 22:52:23 +02:00
parent 4f951247e0
commit f2cf1449d7

View File

@ -64,7 +64,7 @@ class driver():
while active.value == 1: while active.value == 1:
devices = monitor.poll(2) devices = monitor.poll(2)
if devices: if devices:
eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":''}) eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None})
return time.time() return time.time()
def plugInputDeviceWatchdogTimer(self, active): def plugInputDeviceWatchdogTimer(self, active):
time.sleep(2.5) time.sleep(2.5)