mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
i2c_spi_buses: respect CONFIG_I2C and CONFIG_SPI
- bmp280, dps310, and ms5611 barometers support boards without I2C
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <board_config.h>
|
||||
#ifndef BOARD_DISABLE_I2C_SPI
|
||||
|
||||
#if defined(CONFIG_SPI)
|
||||
|
||||
#include <px4_platform_common/spi.h>
|
||||
|
||||
@@ -163,4 +164,4 @@ bool SPIBusIterator::next()
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* BOARD_DISABLE_I2C_SPI */
|
||||
#endif // CONFIG_SPI
|
||||
|
||||
Reference in New Issue
Block a user