Provide the correct numOfChnls value to FTM_SetupPwm(). Fixes #35. Fixes UltimateHackingKeyboard/bootloader#4.

This commit is contained in:
László Monda
2017-02-28 02:06:56 +01:00
parent 797c51ca7a
commit 1aae668ed5
2 changed files with 2 additions and 5 deletions

View File

@@ -53,11 +53,9 @@ void InitPeripherials(void)
InitResetButton();
InitMergeSensor();
InitI2c();
InitTestLed();
#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
// reenumerate over USB unless disconnecting it, waiting for at least 4 seconds
// and reconnecting it. This is the strangest thing ever!
InitI2cWatchdog();
}