Commit 8ffdda1e authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files

fixed crash bug with compiler option -g

parent ee0f2273
......@@ -221,7 +221,9 @@ void NetFxn(UArg arg0, UArg arg1)
// Get the packet and set uip_len for uIP stack usage.
buf_handle = PacketReceive((int32_t *)(&uip_len));
int32_t len = 0;
buf_handle = PacketReceive((int32_t *)(&len));
uip_len = (uint16_t) len;
if(uip_len > UIP_BUFSIZE)
uip_len = UIP_BUFSIZE;//truncate received packet length if necessary
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment