Skip to content

Commit

Permalink
Merge pull request #2565 from hathach/max3421-limit-max-nak
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach authored Apr 2, 2024
2 parents 574916f + 8936096 commit 29cdd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portable/analog/max3421/hcd_max3421.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ bool hcd_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param) {
TU_VERIFY(cfg_id == TUH_CFGID_MAX3421);

tuh_configure_param_t const* cfg = (tuh_configure_param_t const*) cfg_param;
_max_nak = cfg->max3421.max_nak;
_max_nak = tu_max8(cfg->max3421.max_nak, EP_STATE_ATTEMPT_MAX-EP_STATE_ATTEMPT_1);
return true;
}

Expand Down

0 comments on commit 29cdd6a

Please sign in to comment.