Do not set USB device address to zero (#987)
When setting the USB configuration to zero return from the configured state to the address state according to the USB specification.
This commit is contained in:
@ -274,10 +274,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 {
|
||||
|
Reference in New Issue
Block a user