Skip to content

Commit

Permalink
Merge pull request #1696 from zolkko/master
Browse files Browse the repository at this point in the history
STM32: Clear epComplete flag if a packet has been handled in the callback
  • Loading branch information
sg- authored Sep 28, 2016
2 parents 66329c4 + c2582f6 commit d6b422b
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 d6b422b

Please sign in to comment.