Open GoogleCodeExporter opened 8 years ago
Sorry, my fix only works when changes from #669 is applied....
Original comment by pe...@birchroad.net
on 2 Dec 2011 at 3:43
I've only taken a very brief look at the Dhcp.cpp code, but I wonder if
changing EthernetUDP.available() to return _remaining rather than
W5100.getRXReceivedSize(_sock) makes more sense. The logic being that no bytes
should be available until parsePacket() has been called, and then, only the
bytes that correspond to the current packet. There are a couple references to
available() within EthernetUDP but they could be updated to refer directly to
W5100.getRXReceivedSize(_sock).
I'll try and make the changes and upload an updated EthernetUDP.cpp later.
Original comment by dy...@deedums.com
on 3 Dec 2011 at 5:14
I've attached an updated version of EthernetUdp.cpp to issue 669 which I hope
will fix this for you. Can you please test and let me know if it's fixed it for
you?
Original comment by dy...@deedums.com
on 3 Dec 2011 at 7:43
It works perfectly now, thanks.
When can we expect to see 669 committed to github?
Original comment by pe...@birchroad.net
on 5 Dec 2011 at 7:40
I'm not sure. I submitted the bug and patch a couple months back but I'm not
sure of the right way to bring it to the attention of the Arduino folks.
Original comment by dy...@deedums.com
on 5 Dec 2011 at 10:38
Original issue reported on code.google.com by
pe...@birchroad.net
on 2 Dec 2011 at 3:31