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

Change Next Write Time Passed to Serial or Hub to be Dynamic #302

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

krkeegan
Copy link
Collaborator

@krkeegan krkeegan commented Jan 5, 2021

The write time was previously a timestamp that became fixed as
soon as the protocol wrote it to the Serial or Hub object. The
Serial or Hub object would then sit on the message until that
time.

This design overlooked the possibility that the next write time
could change after the protcol sent the message to the Serial or
Hub. This can happen if another message arrives, and the wait
time needs to be extended, or if a Link Cleanup report arrives
which could decrease the wait time. This likely didn't cause
many errors, but wasn't quite right.

Now the write time is passed as a function which returns the
dynamic write time, so that the Serial and Hub ge the most up to
date calculation.

  • Unit tests updated
  • documentation updated.

The write time was previously a timestamp that became fixed as
soon as the protocol wrote it to the Serial or Hub object.  The
Serial or Hub object would then sit on the message until that
time.

This design overlooked the possibility that the next write time
could change after the protcol sent the message to the Serial or
Hub.  This can happen if another message arrives, and the wait
time needs to be extended, or if a Link Cleanup report arrives
which could decrease the wait time.  This likely didn't cause
many errors, but wasn't quite right.

Now the write time is passed as a function which returns the
dynamic write time, so that the Serial and Hub ge the most up to
date calculation.
@krkeegan krkeegan merged commit 2468e7c into TD22057:dev Jan 5, 2021
@krkeegan krkeegan deleted the Dynamic_Write_Time branch January 5, 2021 23:56
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