Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error thrown when Emotiv is not discovered with a name property #46

Open
jdpigeon opened this issue Nov 30, 2018 · 1 comment
Open

Error thrown when Emotiv is not discovered with a name property #46

jdpigeon opened this issue Nov 30, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jdpigeon
Copy link
Contributor

Add handling for devices that don't return with a name:

    mergeMap(deviceInfo => {
      if (deviceInfo) {
        return of(
          setDeviceType(
            deviceInfo.name.includes('Muse') ? DEVICES.MUSE : DEVICES.EMOTIV
          ),
          setDeviceInfo(deviceInfo),
          setConnectionStatus(CONNECTION_STATUS.CONNECTED)
        );
      }
      return of(setConnectionStatus(CONNECTION_STATUS.DISCONNECTED));
    })
);
@teonbrooks
Copy link
Collaborator

@jdpigeon do you know if this issue is still open?

@teonbrooks teonbrooks added the bug Something isn't working label Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants