mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 22:10:28 +08:00
Merge pull request #3292 from lymzzyh/ecm
[Components][USB][ECM] fix build error
This commit is contained in:
commit
8d0ca47526
@ -419,12 +419,12 @@ rt_err_t rt_ecm_eth_tx(rt_device_t dev, struct pbuf* p)
|
|||||||
p->tot_len = USB_ETH_MTU;
|
p->tot_len = USB_ETH_MTU;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = rt_sem_take(&device->tx_buffer_free, rt_tick_from_millisecond(1000));
|
result = rt_sem_take(&ecm_eth_dev->tx_buffer_free, rt_tick_from_millisecond(1000));
|
||||||
if(result != RT_EOK)
|
if(result != RT_EOK)
|
||||||
{
|
{
|
||||||
LOG_W("wait for buffer free timeout");
|
LOG_W("wait for buffer free timeout");
|
||||||
/* if cost 1s to wait send done it said that connection is close . drop it */
|
/* if cost 1s to wait send done it said that connection is close . drop it */
|
||||||
rt_sem_release(&device->tx_buffer_free);
|
rt_sem_release(&ecm_eth_dev->tx_buffer_free);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user