mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-14 09:39:50 +00: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 */
|
||||
|
||||
pbuf_copy_partial(p, dst, p->tot_len, 0);
|
||||
|
||||
return p->tot_len;
|
||||
return pbuf_copy_partial(p, dst, p->tot_len, 0);
|
||||
}
|
||||
|
||||
static void service_traffic(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user