*fix enumeration issues on some systems

This commit is contained in:
Moonglow 2021-02-07 13:09:19 +03:00 committed by GitHub
parent f1e907405e
commit d33983944e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -266,10 +266,12 @@ static uint8_t device_deinit( USBD_HandleTypeDef *pdev, uint8_t cfgidx )
}
pdev->pClassData = (void*)0;
#if 0
PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData;
USB_DevDisconnect( hpcd->Instance );
HAL_Delay( 250 );
USB_DevConnect( hpcd->Instance );
#endif
return USBD_OK;
}