Pārlūkot izejas kodu

Don't clobber pipe config when changing max packet size

Fixes: https://forum.pjrc.com/threads/51108-3-6-USBHost_t36-USB-Hub-examples
main
PaulStoffregen pirms 6 gadiem
vecāks
revīzija
c895bdf589
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      enumeration.cpp

+ 1
- 1
enumeration.cpp Parādīt failu

@@ -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)

Notiek ielāde…
Atcelt
Saglabāt