-
Notifications
You must be signed in to change notification settings - Fork 1
Added timer_isActive() #352
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
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.
Pull request overview
This PR adds a public function timer_isActive() to expose timer active status checking functionality. The codebase already has an internal function _is_timer_active() that performs this check, and this new function aims to provide the same capability through the public API.
Key changes:
- Added
timer_isActive()function declaration to the header file with appropriate documentation - Implemented
timer_isActive()in the source file to check timer active status viatx_timer_info_get()
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| threadX/inc/u_tx_timers.h | Adds public API function declaration with @brief documentation |
| threadX/src/u_tx_timers.c | Implements timer active status checking, but contains a critical variable shadowing bug and copy-pasted comments that need correction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Added a function to
u_tx_timers.cthat checks whether or not a timer is active.