4 Jan
2017
4 Jan
'17
12:26 p.m.
Juho Jokelainen wrote:
for (i = 0; i < alts->desc.bNumEndpoints; ++i) {
if (alts->endpoint[i].desc.bEndpointAddress == fmt->endpoint)
alts->endpoint[i].enabled = 1;
else if (need_init)
alts->endpoint[i].enabled = 0;
This field is set by the USB framework; changing it from other code does not make sense.
We need to track the state of the interface, not of the endpoint.
Regards, Clemens