summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Leonov <[email protected]>2024-11-28 12:59:13 +0100
committerRoman Leonov <[email protected]>2024-11-28 13:11:54 +0100
commit239443c197c34f0f51a4ff7839b25985ccbb48ad (patch)
tree73cdd2373967054d4428cb49694ad43e012ad3aa
parent741fdaaee7b346815546a8e5be2cae9dd015d64a (diff)
fix(dcd_dwc2): Correct usage of dwc2_controller
-rw-r--r--src/portable/synopsys/dwc2/dcd_dwc2.c4
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++;
}