add NCM driver in a compatible manner : hathach/tinyusb#550

This commit is contained in:
Peter Lawrence
2021-08-03 11:28:44 -05:00
parent 958cf2cfba
commit 03d7988df3
13 changed files with 595 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ static err_t linkoutput_fn(struct netif *netif, struct pbuf *p)
return ERR_USE;
/* if the network driver can accept another packet, we make it happen */
if (tud_network_can_xmit())
if (tud_network_can_xmit(p->tot_len))
{
tud_network_xmit(p, 0 /* unused for this example */);
return ERR_OK;