Skip to content

Exception in thread Thread-1 #9

@fs264

Description

@fs264

Hi after few seconds running fine, the script throws this error and it will stop reading from the mindwave. Any solution?

Thanks

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/pi/python/Mindwave/mindwave.py", line 73, in run
    self.parse_payload(payload)
  File "/home/pi/python/Mindwave/mindwave.py", line 143, in parse_payload
    raw=ord(value[0])*256+ord(value[1])
IndexError: string index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions