Corrected a bug in udp client :
Some data that the callback receive were not interpreted correctly (and it may not be okay still)
This commit is contained in:
parent
f6be2c4ec9
commit
464cd6fd1b
|
@ -17,9 +17,9 @@ static inline void handle_receive(struct pbuf *p, const ip_addr_t *addr, u16_t p
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void udp_receive_callback(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
|
static void udp_receive_callback(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
|
||||||
{
|
{
|
||||||
udp_client = *(udp_client_t *)&arg;
|
udp_client_t *udp_client_received_data = (udp_client_t *)arg;
|
||||||
handle_receive(p, addr, port);
|
handle_receive(p, addr, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue