This commit is contained in:
Hoernchen
2013-06-15 10:36:53 +02:00
parent 3c7bc948f1
commit a6696de1d2

View File

@ -817,10 +817,9 @@ usb_request_status_t usb_vendor_request_set_if_freq(
) {
if( stage == USB_TRANSFER_STAGE_SETUP ) {
MAX2837_FREQ_NOMINAL_HZ = (uint32_t)endpoint->setup.index * 1000 * 1000;
return USB_REQUEST_STATUS_STALL;
} else {
return USB_REQUEST_STATUS_OK;
usb_endpoint_schedule_ack(endpoint->in);
}
return USB_REQUEST_STATUS_OK;
}
static const usb_request_handler_fn vendor_request_handler[] = {