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

Multiple Myos #10

Open
UrbanLienert opened this issue Nov 15, 2017 · 0 comments
Open

Multiple Myos #10

UrbanLienert opened this issue Nov 15, 2017 · 0 comments

Comments

@UrbanLienert
Copy link

Hi Jules,

Multiple myos has a little bug. I can not set the device with an attribute or message as in your help file example. Only the device list example works.
Fix:
It looks like the Myo frameworks function getName() returns a string that is 1 char to long (at least the Mac version). That’s why your string comparison never returns true.
I changed the function getName() in Myo.hpp to:
std::string getName()
{
long len = name.length();
return name.substr(1,len-1);
//return name;
}
And it works!

Best
Urban

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant