Skip to content

Conversation

@bjackson312006
Copy link
Contributor

Added a function to u_tx_timers.c that checks whether or not a timer is active.

Copy link

Copilot AI left a 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 via tx_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.

Copy link

Copilot AI left a 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.

jr1221
jr1221 previously approved these changes Nov 24, 2025
@bjackson312006 bjackson312006 merged commit 9230bde into main Nov 24, 2025
2 checks passed
@bjackson312006 bjackson312006 deleted the timer-getactive branch November 24, 2025 01:53
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.

3 participants