mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 17:55:28 +03:00
Fix building without I2C
This commit is contained in:
parent
0f85f3718d
commit
ae035ab557
1 changed files with 2 additions and 0 deletions
|
@ -211,7 +211,9 @@ void init(void)
|
||||||
// Re-initialize system clock to their final values (if necessary)
|
// Re-initialize system clock to their final values (if necessary)
|
||||||
systemClockSetup(systemConfig()->cpuUnderclock);
|
systemClockSetup(systemConfig()->cpuUnderclock);
|
||||||
|
|
||||||
|
#ifdef USE_I2C
|
||||||
i2cSetSpeed(systemConfig()->i2c_speed);
|
i2cSetSpeed(systemConfig()->i2c_speed);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_HARDWARE_PREBOOT_SETUP
|
#ifdef USE_HARDWARE_PREBOOT_SETUP
|
||||||
initialisePreBootHardware();
|
initialisePreBootHardware();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue