mirror of https://github.com/ArduPilot/ardupilot
desktop: fixed Wire.begin() build problem
This commit is contained in:
parent
fa83de98c8
commit
dd4498d113
|
@ -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
|
||||||
//
|
//
|
||||||
|
|
|
@ -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
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue