We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02657fb commit 3c84f7cCopy full SHA for 3c84f7c
cores/arduino/USB/CDC.cpp
@@ -118,18 +118,7 @@ uint8_t Serial_::getShortName(char* name) {
118
}
119
120
void Serial_::handleEndpoint(int ep) {
121
- if (ep == CDC_ENDPOINT_IN)
122
- {
123
- // NAK on endpoint IN, the bank is not yet filled in.
124
- usbd.epBank1ResetReady(CDC_ENDPOINT_IN);
125
- usbd.epBank1AckTransferComplete(CDC_ENDPOINT_IN);
126
- }
127
- if (ep == CDC_ENDPOINT_ACM)
128
129
130
- usbd.epBank1ResetReady(CDC_ENDPOINT_ACM);
131
- usbd.epBank1AckTransferComplete(CDC_ENDPOINT_ACM);
132
+ usbd.epAckPendingInterrupts(ep);
133
134
135
bool Serial_::setup(USBSetup& setup)
0 commit comments