diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 283b2db44b..91c83d2cdc 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -106,7 +106,9 @@ static void init_ardupilot() // // Initialize Wire and SPI libraries // +#ifndef DESKTOP_BUILD Wire.begin(); +#endif SPI.begin(); SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate // diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde index e544e151be..c9a1526640 100644 --- a/ArduPlane/system.pde +++ b/ArduPlane/system.pde @@ -103,7 +103,9 @@ static void init_ardupilot() // // Initialize Wire and SPI libraries // +#ifndef DESKTOP_BUILD Wire.begin(); +#endif SPI.begin(); SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate //