update usb enum return codes
Should have been fixed in commit 85be1e5e7b when we updated the library, but was... missed.
travis caught it after the fact at least.
This commit is contained in:
@@ -173,7 +173,7 @@ usbd_device *acm_dev;
|
||||
uint8_t usbd_control_buffer[128];
|
||||
extern usbd_driver lm4f_usb_driver;
|
||||
|
||||
static int cdcacm_control_request(usbd_device * usbd_dev,
|
||||
static enum usbd_request_return_codes cdcacm_control_request(usbd_device * usbd_dev,
|
||||
struct usb_setup_data *req, uint8_t ** buf,
|
||||
uint16_t * len,
|
||||
void (**complete) (usbd_device * usbd_dev,
|
||||
@@ -199,13 +199,13 @@ static int cdcacm_control_request(usbd_device * usbd_dev,
|
||||
|
||||
glue_set_line_state_cb(dtr, rts);
|
||||
|
||||
return 1;
|
||||
return USBD_REQ_HANDLED;
|
||||
}
|
||||
case USB_CDC_REQ_SET_LINE_CODING:{
|
||||
struct usb_cdc_line_coding *coding;
|
||||
|
||||
if (*len < sizeof(struct usb_cdc_line_coding))
|
||||
return 0;
|
||||
return USBD_REQ_NOTSUPP;
|
||||
|
||||
coding = (struct usb_cdc_line_coding *)*buf;
|
||||
return glue_set_line_coding_cb(coding->dwDTERate,
|
||||
@@ -214,7 +214,7 @@ static int cdcacm_control_request(usbd_device * usbd_dev,
|
||||
coding->bCharFormat);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return USBD_REQ_NOTSUPP;
|
||||
}
|
||||
|
||||
static void cdcacm_data_rx_cb(usbd_device * usbd_dev, uint8_t ep)
|
||||
|
||||
Reference in New Issue
Block a user