diff options
Diffstat (limited to 'firmware/usbstack/core')
-rw-r--r-- | firmware/usbstack/core/epsetup.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/firmware/usbstack/core/epsetup.c b/firmware/usbstack/core/epsetup.c index 338285e8c3..702108a1cb 100644 --- a/firmware/usbstack/core/epsetup.c +++ b/firmware/usbstack/core/epsetup.c | |||
@@ -164,23 +164,6 @@ static int ep_matches(struct usb_ep* ep, struct usb_endpoint_descriptor* desc) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | /* MATCH!! */ | 166 | /* MATCH!! */ |
167 | 167 | ||
168 | /* report address */ | ||
169 | desc->bEndpointAddress |= ep->ep_num; | ||
170 | |||
171 | /* report (variable) full speed bulk maxpacket */ | ||
172 | if (type == USB_ENDPOINT_XFER_BULK) { | ||
173 | int size = max; | ||
174 | |||
175 | /* min() doesn't work on bitfields with gcc-3.5 */ | ||
176 | if (size > 64) { | ||
177 | size = 64; | ||
178 | } | ||
179 | desc->wMaxPacketSize = size; | ||
180 | } | ||
181 | |||
182 | /* save desc in endpoint */ | ||
183 | ep->desc = desc; | ||
184 | |||
185 | return 1; | 168 | return 1; |
186 | } | 169 | } |