desktop: fixed Wire.begin() build problem

This commit is contained in:
Andrew Tridgell 2011-12-12 14:59:27 +11:00
parent fa83de98c8
commit dd4498d113
2 changed files with 4 additions and 0 deletions

View File

@ -106,7 +106,9 @@ static void init_ardupilot()
// //
// Initialize Wire and SPI libraries // Initialize Wire and SPI libraries
// //
#ifndef DESKTOP_BUILD
Wire.begin(); Wire.begin();
#endif
SPI.begin(); SPI.begin();
SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate
// //

View File

@ -103,7 +103,9 @@ static void init_ardupilot()
// //
// Initialize Wire and SPI libraries // Initialize Wire and SPI libraries
// //
#ifndef DESKTOP_BUILD
Wire.begin(); Wire.begin();
#endif
SPI.begin(); SPI.begin();
SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate
// //