Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion emotiv/epoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,14 @@ def set_channel_mask(self, channel_mask):
self.channel_mask = channel_mask

def enumerate(self):

"""Traverse through USB bus and enumerate EPOC devices."""
if self.method == "dummy":
self.endpoint = open("/dev/urandom")
self.get_sample = self.__get_sample_dummy
return

devices = usb.core.find(find_all=True, custom_match=self._is_epoc)
devices = usb.core.find(idVendor=0x1234, find_all=True, custom_match=self._is_epoc)

if not devices:
raise EPOCNotPluggedError("Emotiv EPOC not found.")
Expand Down