-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Closure] Closure control command implementations in linux app #39728
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
[Closure] Closure control command implementations in linux app #39728
Conversation
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 PR implements the Stop command for the closure linux app. The implementation includes cancelling any existing timers and setting the final state of endpoints. The review focuses on error handling, logic correctness, and code clarity.
examples/closure-app/closure-common/src/ClosureDimensionEndpoint.cpp
Outdated
Show resolved
Hide resolved
PR #39728: Size comparison from a8817cc to 7ed1b50 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
7ed1b50
to
48e4046
Compare
PR #39728: Size comparison from 77d91c0 to 70c8974 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39728: Size comparison from 77d91c0 to 59ca1ef Full report (3 builds for nrfconnect)
|
PR #39728: Size comparison from 9151e79 to 5f76692 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39728: Size comparison from 5ad1201 to b90c559 Full report (11 builds for cc13x4_26x4, cc32xx, qpg, stm32, tizen)
|
PR #39728: Size comparison from 5ad1201 to efdb188 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #39728: Size comparison from 1f94f79 to 1c27d82 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
…ct-chip#39728) * linux app common code and claibrate * Restyled by clang-format * cleaning duplicate include s * Stop command implementation for linux * Stop command code for linux app * Restyled by clang-format * Remove common code changes * Moveto command implementation * Restyled by whitespace * Restyled by clang-format * Fix variable names * Restyled by clang-format * Add separate timers for different endpoints * Restyled by whitespace * Restyled by clang-format * PR comments1' --------- Co-authored-by: Satya Naag Bollimpalli <sabollim@silabs.com> Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: sabollim-silabs <158290810+sabollim-silabs@users.noreply.github.com> Co-authored-by: sabollim <satyanaag.bollimpalli@silabs.com>
Summary
This PR contains the closure control commands (stop and move-to) implementation for closure linux app.
Stop command is synchronous command which will stop any ongoing operation and set the final state of endpoints.
Move-To command is an asynchronous command, which moves at a rate of 1000 units per second.
Related issues
N/A
Testing
Validated the linux app across TestScripts : TC_CLCTRL_2_1.py, TC_CLCTRL_4_2.py, TC_CLCTRL_4_3.py, TC_CLCTRL_4_4.py
Readability checklist
The checklist below will help the reviewer finish PR review in time and keep the
code readable:
descriptive
“When in Rome…”
rule (coding style)
See: Pull Request Guidelines