mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Fix shadowing declartion in dcd_da146xx.c
This commit is contained in:
parent
387bf1478e
commit
00248de15a
@ -290,7 +290,6 @@ void tusb_vbus_changed(bool present)
|
||||
static void fill_tx_fifo(xfer_ctl_t * xfer)
|
||||
{
|
||||
int left_to_send;
|
||||
uint8_t const *src;
|
||||
EPx_REGS *regs = xfer->regs;
|
||||
uint8_t const epnum = tu_edpt_number(xfer->ep_addr);
|
||||
|
||||
@ -338,7 +337,7 @@ static void fill_tx_fifo(xfer_ctl_t * xfer)
|
||||
}
|
||||
else
|
||||
{
|
||||
src = &xfer->buffer[xfer->transferred];
|
||||
uint8_t const *src = &xfer->buffer[xfer->transferred];
|
||||
while ((regs->txs & USB_USB_TXS1_REG_USB_TCOUNT_Msk) > 0 && left_to_send > 0)
|
||||
{
|
||||
regs->txd = *src++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user