mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 17:55:28 +03:00
Make sure defining/not defining USE_UNDERCLOCK doesn't break the functionality
This commit is contained in:
parent
8e77390fb2
commit
cc90e3b9a7
3 changed files with 15 additions and 2 deletions
|
@ -180,6 +180,7 @@ void init(void)
|
|||
|
||||
printfSupportInit();
|
||||
|
||||
// Initialize system and CPU clocks to their initial values
|
||||
systemInit();
|
||||
|
||||
// initialize IO (needed for all IO operations)
|
||||
|
@ -197,9 +198,8 @@ void init(void)
|
|||
ensureEEPROMContainsValidData();
|
||||
readEEPROM();
|
||||
|
||||
#ifdef USE_UNDERCLOCK
|
||||
// Re-initialize system clock to their final values (if necessary)
|
||||
systemClockSetup(systemConfig()->cpuUnderclock);
|
||||
#endif
|
||||
|
||||
i2cSetSpeed(systemConfig()->i2c_speed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue