From 4a62a006ca0f127ef2b5ac54325c459c6cde5694 Mon Sep 17 00:00:00 2001 From: mikeller Date: Wed, 19 Dec 2018 17:45:11 +1300 Subject: [PATCH] Moved 'mcoInit()' to after 'OverclockRebootIfNecessary()' to have it execute only once. --- src/main/fc/init.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/fc/init.c b/src/main/fc/init.c index 016214ef9e..765f425a08 100644 --- a/src/main/fc/init.c +++ b/src/main/fc/init.c @@ -301,12 +301,6 @@ void init(void) } #endif - // Configure MCO output after config is stable - -#ifdef USE_MCO - mcoInit(mcoConfig()); -#endif - // Note that spektrumBind checks if a call is immediately after // hard reset (including power cycle), so it should be called before // systemClockSetHSEValue and OverclockRebootIfNecessary, as these @@ -337,6 +331,11 @@ void init(void) OverclockRebootIfNecessary(systemConfig()->cpu_overclock); #endif + // Configure MCO output after config is stable +#ifdef USE_MCO + mcoInit(mcoConfig()); +#endif + timerInit(); // timer must be initialized before any channel is allocated #ifdef BUS_SWITCH_PIN