openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
521 stars 235 forks source link

headset.dequeue() is None #262

Closed shihray closed 7 years ago

shihray commented 7 years ago

Hello, I'm trying to use a thread to do my work before start load packet using headset.dequeue() then I can't get the packet result (it will become None) so is that can't use thread with emokit together?

ghost commented 7 years ago

Your thread is executing before data is returned from the headset.

You need to add a check:

if packet is not None:
    print(packet)
shihray commented 7 years ago

@bschumacher I doing this before my work my question is the data return from headset was all None I can't get another result