Skip to content

Commit

Permalink
Merge branch 'master' of github.com:andysworkshop/stm32plus
Browse files Browse the repository at this point in the history
  • Loading branch information
andysworkshop committed May 3, 2015
2 parents a2a5b3c + a3bdff7 commit 34ce47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/net_udp_receive_async/net_udp_receive_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class NetUdpReceiveAsyncTest {

// the datagram length includes the UDP network header (8 bytes)

_datagramDataSize=NetUtil::htons(event.udpDatagram.udp_length)-UdpDatagram::getHeaderSize();
_datagramDataSize=NetUtil::ntohs(event.udpDatagram.udp_length)-UdpDatagram::getHeaderSize();

// cut it down to a max of 10 bytes

Expand Down

0 comments on commit 34ce47e

Please sign in to comment.