return None into event queue for empty
This commit is contained in:
parent
4f951247e0
commit
f2cf1449d7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user