dcd_da146xx: Clear transfer data on dcd_edpt_close

Closing endpoint clears data in affected xfer_ctl_t
This commit is contained in:
Jerzy Kasenberg 2021-09-24 09:15:18 +02:00
parent f172c5ee13
commit 1503955860
1 changed files with 1 additions and 0 deletions

View File

@ -939,6 +939,7 @@ void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
}
}
}
tu_memclr(xfer, sizeof(*xfer));
}
bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes)