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

Plane: Change IF statement to SWITCH statement #27366

Conversation

muramura
Copy link
Contributor

C++ has a SWITCH statement.
I think the SWITCH statement is better than the IF statement when you want to select different processes with the same variable.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterbarker
Copy link
Contributor

peterbarker commented Jul 29, 2024

CI failure is an internal github error on a bootloader build. I think ti's safe to merge anyway

rebased

@peterbarker peterbarker force-pushed the AP_Change_IF_statement_to_SWITCH_statement branch from 4114be5 to 6039990 Compare July 29, 2024 08:32
@tridge
Copy link
Contributor

tridge commented Jul 29, 2024

not keen on this, the testing to validate it isn't worth the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants