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

Fix behavior of library when multiple devices present. #8

Open
rpcope1 opened this issue Apr 22, 2015 · 0 comments
Open

Fix behavior of library when multiple devices present. #8

rpcope1 opened this issue Apr 22, 2015 · 0 comments
Assignees
Milestone

Comments

@rpcope1
Copy link
Owner

rpcope1 commented Apr 22, 2015

Currently everything works OK if only one scope is present, however the setup() method has no way of discriminating devices by serial number, and we automatically select the first scope we find. This will not work well if we have multiple devices we want to utilize present at the same time.

Two changes need to occur: first setup needs to have an optional parameter to force the selection of a specific serial number for selecting the correct device again after code load, and the list of devices should be sorted by serial number so that a device ID can be chosen that doesn't change as devices move around on the bus (which unfortunately happens when code is loaded, as the device disappears and reappears as though it's been unplugged/replugged).

@rpcope1 rpcope1 self-assigned this Apr 22, 2015
@rpcope1 rpcope1 added this to the v0.0.3 milestone Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant