diff --git a/flight/PiOS/STM32F10x/pios_usb_hid.c b/flight/PiOS/STM32F10x/pios_usb_hid.c index ed34fb300..663c4dd4a 100644 --- a/flight/PiOS/STM32F10x/pios_usb_hid.c +++ b/flight/PiOS/STM32F10x/pios_usb_hid.c @@ -96,6 +96,7 @@ int32_t PIOS_USB_HID_Init(uint32_t mode) /* Enable the USB Interrupts */ /* 2 bit for pre-emption priority, 2 bits for subpriority */ NVIC_InitTypeDef NVIC_InitStructure; + NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); NVIC_InitStructure.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_LOW; NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;