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 segfault when unable to connect to stdio_usb device #155

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

will-v-pi
Copy link

This adds dr_vidpid_stdio_usb_cant_connect to the picoboot_device_result enum, to provide a more useful error when picotool is unable to connect to a device using stdio_usb. The current behaviour was a segfault in this situation, so this now fixes #151

This also builds on #154 to add the correct device to the error message when a stdio_usb device is discovered, rather than just printing RP-series.

@will-v-pi will-v-pi added this to the 2.0.1 milestone Oct 17, 2024
@will-v-pi will-v-pi linked an issue Oct 17, 2024 that may be closed by this pull request
@will-v-pi will-v-pi merged commit c4550ad into develop Oct 22, 2024
31 checks passed
@will-v-pi will-v-pi deleted the no-usb-segfault-fix branch October 22, 2024 13:55
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.

picotool silently segfaults if it can't open a device
1 participant