Kernel: Use correct USB endpoint field to determine interval
I was using the wrong endpoint descriptor field which caused intervals to be messed up.
This commit is contained in:
parent
7de689055c
commit
c623ad7da0
|
@ -156,7 +156,7 @@ namespace Kernel
|
||||||
// 6.2.3.6 Interval
|
// 6.2.3.6 Interval
|
||||||
static uint32_t determine_interval(const USBEndpointDescriptor& endpoint_descriptor, USB::SpeedClass speed_class)
|
static uint32_t determine_interval(const USBEndpointDescriptor& endpoint_descriptor, USB::SpeedClass speed_class)
|
||||||
{
|
{
|
||||||
auto ep_type = static_cast<USB::EndpointType>(endpoint_descriptor.bDescriptorType & 0x03);
|
const auto ep_type = static_cast<USB::EndpointType>(endpoint_descriptor.bmAttributes & 0x03);
|
||||||
|
|
||||||
switch (speed_class)
|
switch (speed_class)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue