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

Fixed bug with negative offsets in PeriodicGate #986

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

haug-den-lucas
Copy link
Contributor

@haug-den-lucas haug-den-lucas commented Jul 11, 2024

When the offset of a PeriodicGate is negative, the state is inconsistent until the end of the first cycle, as the initialization phase is not executed properly.

This PR fixed this, by ensuring the modulo calculation for the offset always produces a positive result.

@levy levy self-assigned this Jul 15, 2024
@levy levy added the Bug label Jul 15, 2024
@levy levy merged commit 8068407 into inet-framework:master Jul 15, 2024
10 checks passed
@levy
Copy link
Contributor

levy commented Jul 15, 2024

Thanks for the PR!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants