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:
Bananymous 2025-02-06 22:34:47 +02:00
parent 7de689055c
commit c623ad7da0
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace Kernel
// 6.2.3.6 Interval
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)
{