mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
fix(dcd_dwc2): Correct usage of dwc2_controller
This commit is contained in:
parent
741fdaaee7
commit
239443c197
@ -192,8 +192,8 @@ static bool dfifo_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t packet_size) {
|
||||
}
|
||||
} else {
|
||||
// Check IN endpoints concurrently active limit
|
||||
if(_dwc2_controller->ep_in_count) {
|
||||
TU_ASSERT(_dcd_data.allocated_epin_count < _dwc2_controller->ep_in_count);
|
||||
if(dwc2_controller->ep_in_count) {
|
||||
TU_ASSERT(_dcd_data.allocated_epin_count < dwc2_controller->ep_in_count);
|
||||
_dcd_data.allocated_epin_count++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user