-
Notifications
You must be signed in to change notification settings - Fork 254
Add blink end callback for lighting commands #1214
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
…t the specified priority slot after an egress time delay.
…date at the specified priority slot after an egress time delay shall occur.
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
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.CallbackandBlink.Priorityto 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.
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.