usb_standard_request: Always call configuration_changed_cb
For reasons I don't entirely understand, bulk requests are suddenly ignored after a SET_CONFIGURATION request (even if the configuration did not change) unless the endpoints are reinitialized. This is done by configuration_changed_cb, therefore we call it for every request.
This commit is contained in:
@ -100,9 +100,11 @@ bool usb_set_configuration(
|
||||
if( new_configuration != device->configuration ) {
|
||||
// Configuration changed.
|
||||
device->configuration = new_configuration;
|
||||
if (usb_configuration_changed_cb)
|
||||
usb_configuration_changed_cb(device);
|
||||
}
|
||||
|
||||
if (usb_configuration_changed_cb)
|
||||
usb_configuration_changed_cb(device);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user