Skip to main content
Visitor II
January 3, 2021
Question

USB Custom Mouse main loop SendRepot Blocking computer startup

  • January 3, 2021
  • 0 replies
  • 422 views
void main()
{
 ***_Init();
 MX_USB_DEVICE_Init();
 uint8_t[4] ={0x00, 0x00, 0x00, 0x00};//{button, x, y, wheel}
 while(1)
 {
 UsbFlag = USBD_CUSTOM_HID_SendReport(&hUsbDeviceFS, &Buffr, sizeof(Buffr));
 }
}

this work no problem

However, when the computer restarts, it blocks the boot

 0693W000006HLeKQAW.jpg

    This topic has been closed for replies.