For debug purpose
This commit is contained in:
parent
1305a9727c
commit
a402f2594f
|
|
@ -45,6 +45,8 @@ void udp_server_send(void)
|
||||||
struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, MSG_LEN, PBUF_RAM);
|
struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, MSG_LEN, PBUF_RAM);
|
||||||
memcpy((uint8_t *)p->payload, data.raw, MSG_LEN);
|
memcpy((uint8_t *)p->payload, data.raw, MSG_LEN);
|
||||||
|
|
||||||
|
//printf(">joystick:%d:%d|xy\n", controller.inputs.joystick_x, controller.inputs.joystick_y);
|
||||||
|
|
||||||
err_t error_code = udp_sendto(controller.udp_server.pcb, p, IP_ADDR_ANY, UDP_CLIENT_PORT);
|
err_t error_code = udp_sendto(controller.udp_server.pcb, p, IP_ADDR_ANY, UDP_CLIENT_PORT);
|
||||||
|
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue