USB: skip extra audio endpoint descriptor data so it doesn't get parsed twice

This commit is contained in:
jackun 2021-01-14 08:51:44 +02:00
parent 538e5691f0
commit 618940d78c
1 changed files with 1 additions and 0 deletions

View File

@ -491,6 +491,7 @@ int usb_desc_parse_config(const uint8_t* data, int len, USBDescDevice& dev)
ep.bRefresh = d->u.endpoint.bRefresh;
ep.bSynchAddress = d->u.endpoint.bSynchAddress;
ep.extra = data + pos + d->bLength;
pos += ep.extra[0];
}
iface->eps.push_back(ep);
}