diff --git a/right/src/init_peripherials.c b/right/src/init_peripherials.c index 18e4d33..0e4ca0c 100644 --- a/right/src/init_peripherials.c +++ b/right/src/init_peripherials.c @@ -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! }