Skip to content

Commit

Permalink
Added use of SPI_LOCK in the ms5611 driver on any HW where the
Browse files Browse the repository at this point in the history
      PX4_SPI_BUS_BARO == PX4_SPI_BUS_RAMTRON
  • Loading branch information
David Sidrane authored and LorenzMeier committed Apr 23, 2017
1 parent 47fa8a3 commit 71ef187
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/ms5611/ms5611_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 71ef187

Please sign in to comment.