Skip to content

Commit

Permalink
usb_standard_request: Always call configuration_changed_cb
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bgamari committed Jul 7, 2013
1 parent f12defe commit 9f2dca3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firmware/hackrf_usb/usb_standard_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9f2dca3

Please sign in to comment.