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

PLC4X-244 Support for variable length padding fields. #182

Merged
merged 2 commits into from
Sep 1, 2020
Merged

Conversation

splatch
Copy link
Contributor

@splatch splatch commented Aug 28, 2020

Padding expression must now evaluate to an integer specifying how many times 'padding' field needs to be read or written to the buffer.

S7 parser tests are fine with this change as well as my experiments with socketcan payloads.

Padding expression must now evaluate to an integer specifying how many times 'padding' field needs to be read or written to the buffer.
@chrisdutz
Copy link
Contributor

I will probably need to add something to the size-calculation in C too, but I'll take care of this. Perhaps also change the name of the varialbe from "needsPadding" to "numPading" or similar ... "needs" sounds binary to me.

@chrisdutz
Copy link
Contributor

Just saw that due to the nature of C ... you found all the places that needed adjusting ... thank you very much :-)

@chrisdutz chrisdutz merged commit 1413ffd into develop Sep 1, 2020
@splatch
Copy link
Contributor Author

splatch commented Sep 1, 2020

Good spot on naming, I did a blind change trying to keep it close to initial names. Anyhow, thanks for taking care of this!

@splatch splatch deleted the PLC4X-244 branch September 1, 2020 16:14
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.

None yet

2 participants