Skip to content

Commit

Permalink
Merge pull request #26 from mossmann/address-state
Browse files Browse the repository at this point in the history
Do not set USB device address to zero
  • Loading branch information
miek authored Nov 19, 2021
2 parents 55c89c1 + a1e0033 commit c0b36c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions firmware/platform/lpc43xx/drivers/usb/usb_standard_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ static usb_request_status_t usb_standard_request_set_configuration_setup(
) {
const uint8_t usb_configuration = endpoint->setup.value_l;
if( usb_set_configuration(endpoint->device, usb_configuration) ) {
if( usb_configuration == 0 ) {
// TODO: Should this be done immediately?
usb_set_address_immediate(endpoint->device, 0);
}
usb_transfer_schedule_ack(endpoint->in);
return USB_REQUEST_STATUS_OK;
} else {
Expand Down

0 comments on commit c0b36c5

Please sign in to comment.