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

macos: Use registry entry ID instead of location ID to identify device. #14

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

kevinmehall
Copy link
Owner

@kevinmehall kevinmehall commented Dec 17, 2023

It changes when the device is disconnected and reconnected, while the location ID is like a port number.

This prevents opening the wrong device if you hold onto a DeviceInfo for a while and a different device is connected to the same port.

It changes when the device is disconnected and reconnected,
while the location ID is like a port number.
@kevinmehall kevinmehall merged commit 338e32a into main Dec 17, 2023
3 checks passed
@kevinmehall kevinmehall deleted the macos-registry-id branch December 17, 2023 00:14
tuna-f1sh pushed a commit to tuna-f1sh/nusb that referenced this pull request Sep 26, 2024
fixup: monitor: handle `UdevMonitor` magic bytes mismatch
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

Successfully merging this pull request may close these issues.

1 participant