Resolve USB reenumeration issue. Don't ask me why it's working now. We should find an explanation eventually.

This commit is contained in:
László Monda
2017-01-20 02:04:08 +01:00
parent ece0ffc6fc
commit cad09faf02
+3 -1
View File
@@ -48,9 +48,11 @@ void InitPeripherials(void)
{ {
InitResetButton(); InitResetButton();
InitMergeSensor(); InitMergeSensor();
InitTestLed();
InitI2c(); InitI2c();
#if UHK_PCB_MAJOR_VERSION == 7 #if UHK_PCB_MAJOR_VERSION == 7
LedPwm_Init(); LedPwm_Init();
#endif #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!
} }