Skip to content

Commit

Permalink
Don't clobber pipe config when changing max packet size
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed May 27, 2018
1 parent f80dbac commit c895bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumeration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ uint32_t USBHost::assign_address(void)

static void pipe_set_maxlen(Pipe_t *pipe, uint32_t maxlen)
{
pipe->qh.capabilities[0] = (pipe->qh.capabilities[0] & 0x8000FFFF) | (maxlen << 16);
pipe->qh.capabilities[0] = (pipe->qh.capabilities[0] & 0xF800FFFF) | (maxlen << 16);
}

static void pipe_set_addr(Pipe_t *pipe, uint32_t addr)
Expand Down

0 comments on commit c895bdf

Please sign in to comment.