Skip to content

Commit f6ae6d8

Browse files
committed
Fixing typo - although control endpoints are located at endpoint #0 we should leave this choice to the caller of the function and be consistent within the rest of the code
1 parent 67bf93e commit f6ae6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/USBCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void USBDeviceClass::initEP(uint32_t ep, uint32_t config)
425425

426426
// Setup Control IN
427427
usbd.epBank1SetSize(ep, 64);
428-
usbd.epBank1SetAddress(ep, &udd_ep_in_cache_buffer[0]);
428+
usbd.epBank1SetAddress(ep, &udd_ep_in_cache_buffer[ep]);
429429
usbd.epBank1SetType(ep, 1); // CONTROL IN
430430

431431
// Release OUT EP

0 commit comments

Comments
 (0)