Skip to content

Commit

Permalink
clear epComplete flag if a packet has been handled in the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
zolkko committed Apr 28, 2016
1 parent 868ca35 commit c2582f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/USBDevice/USBDevice/USBHAL_STM32F4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void USBHAL::usbisr(void) {
else {
epComplete |= (1 << endpoint);
if ((instance->*(epCallback[endpoint - 2]))()) {
epComplete &= (1 << endpoint);
epComplete &= ~(1 << endpoint);
}
}
}
Expand Down

0 comments on commit c2582f6

Please sign in to comment.