mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-28 11:52:19 -05:00
Fix order of deferred hub control transfers (KurtE)
https://forum.pjrc.com/threads/45740-USB-Host-Mouse-Driver?p=155745&viewfull=1#post155745
This commit is contained in:
parent
34b7dc5f51
commit
a44e342703
2
hub.cpp
2
hub.cpp
@ -202,7 +202,7 @@ void USBHub::send_setreset(uint32_t port)
|
|||||||
|
|
||||||
static uint32_t lowestbit(uint32_t bitmask)
|
static uint32_t lowestbit(uint32_t bitmask)
|
||||||
{
|
{
|
||||||
return 31 - __builtin_clz(bitmask);
|
return __builtin_ctz(bitmask);
|
||||||
}
|
}
|
||||||
|
|
||||||
void USBHub::control(const Transfer_t *transfer)
|
void USBHub::control(const Transfer_t *transfer)
|
||||||
|
Loading…
Reference in New Issue
Block a user