Skip to content

Commit 8d0ca47

Browse files
authored
Merge pull request #3292 from lymzzyh/ecm
[Components][USB][ECM] fix build error
2 parents 20d1c13 + a4dba7b commit 8d0ca47

File tree

1 file changed

+2
-2
lines changed
  • components/drivers/usb/usbdevice/class

1 file changed

+2
-2
lines changed

components/drivers/usb/usbdevice/class/ecm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,12 @@ rt_err_t rt_ecm_eth_tx(rt_device_t dev, struct pbuf* p)
419419
p->tot_len = USB_ETH_MTU;
420420
}
421421

422-
result = rt_sem_take(&device->tx_buffer_free, rt_tick_from_millisecond(1000));
422+
result = rt_sem_take(&ecm_eth_dev->tx_buffer_free, rt_tick_from_millisecond(1000));
423423
if(result != RT_EOK)
424424
{
425425
LOG_W("wait for buffer free timeout");
426426
/* if cost 1s to wait send done it said that connection is close . drop it */
427-
rt_sem_release(&device->tx_buffer_free);
427+
rt_sem_release(&ecm_eth_dev->tx_buffer_free);
428428
return result;
429429
}
430430

0 commit comments

Comments
 (0)