Skip to content

Commit c2582f6

Browse files
committed
clear epComplete flag if a packet has been handled in the callback
1 parent 868ca35 commit c2582f6

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)