Skip to content

Commit d6b422b

Browse files
authored
Merge pull request #1696 from zolkko/master
STM32: Clear epComplete flag if a packet has been handled in the callback
2 parents 66329c4 + c2582f6 commit d6b422b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/USBDevice/USBDevice/USBHAL_STM32F4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void USBHAL::usbisr(void) {
367367
else {
368368
epComplete |= (1 << endpoint);
369369
if ((instance->*(epCallback[endpoint - 2]))()) {
370-
epComplete &= (1 << endpoint);
370+
epComplete &= ~(1 << endpoint);
371371
}
372372
}
373373
}

0 commit comments

Comments
 (0)