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

Error when transferring high amount of data #33

Closed
Svenson12 opened this issue Mar 10, 2020 · 2 comments
Closed

Error when transferring high amount of data #33

Svenson12 opened this issue Mar 10, 2020 · 2 comments

Comments

@Svenson12
Copy link

With Profinet up to 1440 bytes of data can be transferred.
But due to an invalid data type of buffer_length in struct pf_ppm_t, this size cannot be achieved.
When the Ethernet packet to be transferred becomes bigger than ~255 byte, the code fails and just a fragment of the packet is transferred.
The data type of this variable should be changed from uint8_t to uint16_t.

uint8_t buffer_length;

Can you confirm?

@pyhys
Copy link
Collaborator

pyhys commented Mar 16, 2020

See pull request #35

@pyhys
Copy link
Collaborator

pyhys commented Mar 16, 2020

Thanks for the detailed bug report! Now fixed.

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

No branches or pull requests

3 participants