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

LogBrowse: use int.TryParse instead of int.Parse #3027

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

tatsuy
Copy link
Contributor

@tatsuy tatsuy commented Dec 17, 2022

If log's instance is not integer, exception happens.
So I change to use int.TryParse instead of int.Parse.

Before
image

After
image

The log output here will have a char type in the instance.
https://github.com/ArduPilot/ardupilot/blob/Copter-4.3/libraries/GCS_MAVLink/GCS_Common.cpp#L3179

@meee1 meee1 merged commit 9f339ff into ArduPilot:master Feb 15, 2023
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.

2 participants