Merge pull request #1696 from zolkko/master

STM32: Clear epComplete flag if a packet has been handled in the callback
pull/2822/head^2
Sam Grove 2016-09-27 21:51:17 -07:00 committed by GitHub
commit d6b422bd50
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ void USBHAL::usbisr(void) {
else {
epComplete |= (1 << endpoint);
if ((instance->*(epCallback[endpoint - 2]))()) {
epComplete &= (1 << endpoint);
epComplete &= ~(1 << endpoint);
}
}
}