rp2040: requested change from TU_MIN to tu_min16

This commit is contained in:
Peter Lawrence 2021-02-25 07:58:54 -06:00
parent 5a8ae31316
commit 762f262be7
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static struct hw_endpoint *hw_endpoint_get_by_addr(uint8_t ep_addr)
}
static void _hw_endpoint_alloc(struct hw_endpoint *ep)
{
uint16_t size = TU_MIN(64, ep->wMaxPacketSize);
uint16_t size = tu_min16(64, ep->wMaxPacketSize);
// Assumes single buffered for now
ep->hw_data_buf = next_buffer_ptr;