Skip to content
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

Fix unsolicted bug #341

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Fix unsolicted bug #341

merged 2 commits into from
Jan 15, 2024

Conversation

jadamcrain
Copy link
Member

@jadamcrain jadamcrain commented Jan 15, 2024

If the user application adds more events to the event buffer than can be transmitted in a single unsolicited message, the outstation sends the first message, then goes to sleep unit another event occurs.

This PR adds a test to demonstrate the bug, and refactors Outstation::run_idle so that if unsolicited response is sent and confirmed, the main loop will re-run immediately to check for more unsolicited data to send.

@jadamcrain jadamcrain merged commit 973a395 into main Jan 15, 2024
27 checks passed
@jadamcrain jadamcrain deleted the bugfix/340 branch January 15, 2024 22:50
jadamcrain added a commit that referenced this pull request Jan 16, 2024
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.

1 participant