Skip to content

Commit

Permalink
fix(dcd_dwc2): Correct usage of dwc2_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Nov 28, 2024
1 parent 741fdaa commit 239443c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portable/synopsys/dwc2/dcd_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 239443c

Please sign in to comment.