Skip to content

Commit 239443c

Browse files
committed
fix(dcd_dwc2): Correct usage of dwc2_controller
1 parent 741fdaa commit 239443c

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
@@ -192,8 +192,8 @@ static bool dfifo_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t packet_size) {
192192
}
193193
} else {
194194
// Check IN endpoints concurrently active limit
195-
if(_dwc2_controller->ep_in_count) {
196-
TU_ASSERT(_dcd_data.allocated_epin_count < _dwc2_controller->ep_in_count);
195+
if(dwc2_controller->ep_in_count) {
196+
TU_ASSERT(_dcd_data.allocated_epin_count < dwc2_controller->ep_in_count);
197197
_dcd_data.allocated_epin_count++;
198198
}
199199

0 commit comments

Comments
 (0)