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 issue-701 for S7 driver. #770

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Fix issue-701 for S7 driver. #770

merged 2 commits into from
Jan 29, 2023

Conversation

glcj
Copy link
Contributor

@glcj glcj commented Jan 28, 2023

Hello,

This PR fixes the binary writing problem on S7 drivers.

The problem originated in the use of padding in the "S7VarPayloadDataItem" type.

The last Item associated with a writing process does not require the use of padding, so it must be considered in the "S7ProtocolLogic".

Likewise, a static method "PADCOUNT" is added, to add or not the padding depending on the "hasNext" flag.

Tests have been carried out and no other processes of the S7 driver are affected.

@glcj glcj merged commit fd8d1f4 into develop Jan 29, 2023
@glcj glcj deleted the issue-701 branch January 29, 2023 00:37
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