Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@skarg
Copy link
Collaborator

@skarg skarg commented Jan 29, 2026

Introduce a blink end callback for lighting commands to handle updates at specified priority slots after an egress time delay for warn-off and warn-relinquish operations.

Copy link
Contributor

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

Adds a “blink end” callback mechanism for lighting-command blink/warn operations so WARN_OFF and WARN_RELINQUISH can apply the final Present_Value action (write OFF / relinquish) after the egress-time delay.

Changes:

  • Introduces Blink.Callback and Blink.Priority to support end-of-blink actions for WARN_OFF/WARN_RELINQUISH.
  • Invokes the callback when a blink sequence ends (and when a new command cancels a warn in progress).
  • Updates Lighting Output (LO) WARN_OFF/WARN_RELINQUISH handling and extends unit tests + changelog.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
test/bacnet/basic/sys/lighting_command/src/main.c Extends blink-warn unit tests to cover callback behavior across operations.
src/bacnet/basic/sys/lighting_command.h Adds blink-end callback type + new fields (Priority, Callback) to blink/warn data.
src/bacnet/basic/sys/lighting_command.c Implements callback dispatch and wires it into blink end/cancel paths; stores priority/callback on blink-warn start.
src/bacnet/basic/object/lo.c Uses the new callback to perform delayed OFF/relinquish at the specified priority.
CHANGELOG.md Documents the fix for warn-off/warn-relinquish delayed priority-slot updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skarg skarg merged commit 5921881 into master Jan 29, 2026
36 checks passed
@skarg skarg deleted the bugfix/lighting-command-relinquish-after-warn branch January 29, 2026 22:03
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.

2 participants