Skip to content

Commit 681b920

Browse files
committed
fix(dcd_dwc2): Correct usage of dwc2_controller
1 parent eb9539b commit 681b920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ static bool dfifo_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t packet_size) {
195195
}
196196
} else {
197197
// Check IN endpoints concurrently active limit
198-
if(_dwc2_controller->ep_in_count) {
199-
TU_ASSERT(_dcd_data.allocated_epin_count < _dwc2_controller->ep_in_count);
198+
if(dwc2_controller->ep_in_count) {
199+
TU_ASSERT(_dcd_data.allocated_epin_count < dwc2_controller->ep_in_count);
200200
_dcd_data.allocated_epin_count++;
201201
}
202202

0 commit comments

Comments
 (0)