summaryrefslogtreecommitdiff
path: root/components/drivers/usb
diff options
context:
space:
mode:
authorZYH <[email protected]>2019-12-25 13:15:10 +0800
committerZYH <[email protected]>2019-12-25 13:15:10 +0800
commita4dba7b5831faad7f3582909a3a76a48f2f5bba0 (patch)
tree9a717da672f1e142d654e0682bfd505a8e23fc5e /components/drivers/usb
parent20d1c13be61493fca0a1e27bdbd567ea2619b321 (diff)
[Components][USB][ECM] fix build error
Diffstat (limited to 'components/drivers/usb')
-rw-r--r--components/drivers/usb/usbdevice/class/ecm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/usb/usbdevice/class/ecm.c b/components/drivers/usb/usbdevice/class/ecm.c
index b98b5007f4..cf948adbfc 100644
--- a/components/drivers/usb/usbdevice/class/ecm.c
+++ b/components/drivers/usb/usbdevice/class/ecm.c
@@ -419,12 +419,12 @@ rt_err_t rt_ecm_eth_tx(rt_device_t dev, struct pbuf* p)
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)
{
LOG_W("wait for buffer free timeout");
/* 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;
}