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

gps: Change the IF statement to a SWITCH statement #23069

Conversation

muramura
Copy link
Contributor

Solved Problem

I am checking the same variable value with different decision values.

Solution

Change to SWITCH statement.

Changelog Entry

None

Alternatives

None

Test coverage

None

Context

None

src/drivers/gps/gps.cpp Show resolved Hide resolved
@muramura muramura force-pushed the PX4_Change_the_IF_statement_to_a_SWITCH_statement-4 branch from c28050d to b95b740 Compare May 6, 2024 05:58
@muramura muramura force-pushed the PX4_Change_the_IF_statement_to_a_SWITCH_statement-4 branch from b95b740 to aa46acb Compare May 6, 2024 05:59
@bresch bresch merged commit b5467d8 into PX4:main May 7, 2024
88 of 89 checks passed
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.

None yet

2 participants