Resolve USB reenumeration issue. Don't ask me why it's working now. We should find an explanation eventually.
This commit is contained in:
@@ -48,9 +48,11 @@ void InitPeripherials(void)
|
||||
{
|
||||
InitResetButton();
|
||||
InitMergeSensor();
|
||||
InitTestLed();
|
||||
InitI2c();
|
||||
#if UHK_PCB_MAJOR_VERSION == 7
|
||||
LedPwm_Init();
|
||||
#endif
|
||||
InitTestLed(); // This function must not be called before LedPwm_Init() or else the UHK won't
|
||||
// enumerate over USB unless disconnecting it, waiting for at least 4 seconds
|
||||
// and reconnecting it. This is the strangest thing ever!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user