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:
Ben Gamari
2013-07-06 17:01:12 -04:00
parent f12defebc6
commit 9f2dca3e4e

View File

@ -100,9 +100,11 @@ bool usb_set_configuration(
if( new_configuration != device->configuration ) { if( new_configuration != device->configuration ) {
// Configuration changed. // Configuration changed.
device->configuration = new_configuration; 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; return true;
} }