diff options
| author | Roman Leonov <[email protected]> | 2024-11-28 12:59:13 +0100 |
|---|---|---|
| committer | Roman Leonov <[email protected]> | 2024-11-28 13:11:54 +0100 |
| commit | 239443c197c34f0f51a4ff7839b25985ccbb48ad (patch) | |
| tree | 73cdd2373967054d4428cb49694ad43e012ad3aa /src | |
| parent | 741fdaaee7b346815546a8e5be2cae9dd015d64a (diff) | |
fix(dcd_dwc2): Correct usage of dwc2_controller
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/synopsys/dwc2/dcd_dwc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c index 91c006e01..bde48ef57 100644 --- a/src/portable/synopsys/dwc2/dcd_dwc2.c +++ b/src/portable/synopsys/dwc2/dcd_dwc2.c @@ -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++; } |
