Jump to content
43oh

EthernetUdp (lm4f) - Some packets don't get properly received


Recommended Posts

Just searched the whole weekend for a bug in my code and finally found out that the bug is placed in
/hardware/lm4f/libraries/Ethernet/EthernetUdp.cpp.

Packets which contain 0xFF bytes will be truncated on that position when calling Udp.read(...)
To fix this you have to change the following line inside of the function:

read(unsigned char* buffer, size_t len)

from:

int8_t b;

to this:

int b;

I hope this will help anyone. :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...