Pārlūkot izejas kodu

[HAL][USB] Ensure to reactivate the usb channel in case of transfer error

Tasnim 1 gadu atpakaļ
vecāks
revīzija
3c4ee87ac2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Src/stm32h7xx_hal_hcd.c

+ 1 - 1
Src/stm32h7xx_hal_hcd.c

@@ -1694,7 +1694,7 @@ static void HCD_HC_OUT_IRQHandler(HCD_HandleTypeDef *hhcd, uint8_t chnum)
       {
         hhcd->hc[chnum].urb_state = URB_NOTREADY;
 
-        /* re-activate the channel  */
+        /* Re-activate the channel  */
         tmpreg = USBx_HC(chnum)->HCCHAR;
         tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
         tmpreg |= USB_OTG_HCCHAR_CHENA;