-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Update the naming of modeselect command to be consistent with modebase. #42237
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
base: master
Are you sure you want to change the base?
Conversation
This is based on project-chip#42200 (review) Although modeselect uses this method in startup, it is not used only in startup .... so keeping the name the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR renames the SetStartupOnMode function to UpdateCurrentModeToOnMode in the ModeSelect integration to align with the naming convention already used in ModeBase integration. The change is purely a refactoring to improve naming consistency across the codebase.
Key changes:
- Renamed
SetStartupOnModetoUpdateCurrentModeToOnModein ModeSelect integration - Updated all call sites in the on-off-server implementation
- Minor formatting adjustment to constructor initialization list
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| mode-select-integration.h | Updated function declaration and inline stub to use the new name UpdateCurrentModeToOnMode |
| mode-select-integration.cpp | Updated function implementation to use the new name UpdateCurrentModeToOnMode |
| on-off-server.cpp | Updated all call sites to use the new function name and minor formatting adjustment to constructor initialization list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the naming of a function in the ModeSelect integration to be more consistent with a similar function in ModeBase integration. The function SetStartupOnMode has been renamed to UpdateCurrentModeToOnMode, which more accurately reflects its usage beyond just startup scenarios. The changes are applied consistently across the function's declaration, definition, and call sites. This is a good improvement for code clarity and consistency.
|
PR #42237: Size comparison from bee7cc7 to 13ab1f5 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
This is based on
#42200 (review)
Although modeselect uses this method in startup, it is not used only in startup .... so keeping the name the same.
Testing
just API name change ... no functionality behavior (so CI still applies)