mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-04 06:33:03 +00:00
Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other interrupts from occuring while the control endpoint request is being processed, causing possible lockups if a USB interrupt occurs during a transfer.
This commit is contained in:
@@ -235,7 +235,10 @@ ISR(USB_COM_vect, ISR_BLOCK)
|
||||
{
|
||||
uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();
|
||||
|
||||
USB_INT_Disable(USB_INT_RXSTPI);
|
||||
sei();
|
||||
USB_USBTask();
|
||||
USB_INT_Enable(USB_INT_RXSTPI);
|
||||
|
||||
USB_INT_Clear(USB_INT_RXSTPI);
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../../../Common/Common.h"
|
||||
|
||||
Reference in New Issue
Block a user