Skip to content

Commit

Permalink
Fix AsyncUDP server exception
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Jul 11, 2018
1 parent ff90778 commit ddfeae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AsyncUDP/src/AsyncUDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr,
_len = pb->len;
_index = 0;

pbuf_ref(_pb);

//memcpy(&_remoteIp, raddr, sizeof(ip_addr_t));
_remoteIp.type = raddr->type;
_localIp.type = _remoteIp.type;
Expand Down

0 comments on commit ddfeae9

Please sign in to comment.