mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 15:21:21 +08:00
net_lwip_webserver: further simplify pbuf_copy_partial() usage
This commit is contained in:
parent
b682ce916a
commit
5a8ea0e0e2
@ -181,9 +181,7 @@ uint16_t tud_network_xmit_cb(uint8_t *dst, void *ref, uint16_t arg)
|
|||||||
|
|
||||||
(void)arg; /* unused for this example */
|
(void)arg; /* unused for this example */
|
||||||
|
|
||||||
pbuf_copy_partial(p, dst, p->tot_len, 0);
|
return pbuf_copy_partial(p, dst, p->tot_len, 0);
|
||||||
|
|
||||||
return p->tot_len;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void service_traffic(void)
|
static void service_traffic(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user