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

Fixing begin of the TX-frame and issues with recieving an error frame. #10

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

Guswib
Copy link
Contributor

@Guswib Guswib commented Nov 2, 2024

  • update to SensirionShdlcTxFrame::begin so the TX-buffer is always filled from position 0.
    . update to SensirionShdlcCommunication::receiveFrame - if an error frame is recieved, the data part of the frame should not be read even if the length is not 0.

the begin function sets the index to 0.
Fixes issues when an error frame is read, and the datalength-values is not 0.
Copy link
Contributor Author

@Guswib Guswib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update to SensirionShdlcCommunication::receiveFrame - if an error frame is recieved, the data part of the frame should not be read even if the length is not 0.

@psachs psachs merged commit 2db8158 into Sensirion:main Nov 27, 2024
2 checks passed
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