Browse Source

Added use of SPI_LOCK in the ms5611 driver on any HW where the

PX4_SPI_BUS_BARO == PX4_SPI_BUS_RAMTRON
sbg
David Sidrane 8 years ago committed by Lorenz Meier
parent
commit
bf570dee2f
  1. 5
      src/drivers/ms5611/ms5611_spi.cpp

5
src/drivers/ms5611/ms5611_spi.cpp

@ -145,6 +145,11 @@ MS5611_SPI::init() @@ -145,6 +145,11 @@ MS5611_SPI::init()
{
int ret;
#if defined(PX4_SPI_BUS_RAMTRON) && \
(PX4_SPI_BUS_BARO == PX4_SPI_BUS_RAMTRON)
SPI::set_lockmode(LOCK_THREADS);
#endif
ret = SPI::init();
if (ret != OK) {

Loading…
Cancel
Save