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

Use TryParse when converting custom device pins #1918

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

neilenns
Copy link
Contributor

@neilenns neilenns commented Jan 15, 2025

Fixes #1923

Use TryParse and a try/catch to avoid any crashing. This not only fixes the crash for the person originally reporting the issue but makes everything work correctly.

Copy link

Build for this pull request:
MobiFlightConnector.zip

Copy link

Build for this pull request:
MobiFlightConnector.zip

Copy link

Build for this pull request:
MobiFlightConnector.zip

@neilenns neilenns changed the title Use TryParse and log Use TryParse when converting custom device pins Jan 16, 2025
@neilenns neilenns marked this pull request as ready for review January 16, 2025 18:33
@neilenns neilenns requested a review from DocMoebiuz as a code owner January 16, 2025 18:33
Copy link

Build for this pull request:
MobiFlightConnector.zip

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.

Crash when converting pin to byte in custom devices
1 participant