We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74d9e51 commit a91b8a1Copy full SHA for a91b8a1
cores/arduino/USBCore.cpp
@@ -106,6 +106,9 @@ template<size_t L>
106
void EPBuffer<L>::init(uint8_t ep)
107
{
108
this->ep = ep;
109
+ this->reset();
110
+ this->rxWaiting = false;
111
+ this->txWaiting = false;
112
}
113
114
template<size_t L>
@@ -333,6 +336,7 @@ class ClassCore
333
336
* Allow data to come in to OUT buffers immediately, as it
334
337
* will be copied out as it comes in.
335
338
*/
339
+ EPBuffers().buf(ep).init(ep);
340
if (desc.dir() == 0) {
341
EPBuffers().buf(ep).enableOutEndpoint();
342
0 commit comments