mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Added use of SPI_LOCK in the ms5611 driver on any HW where the
PX4_SPI_BUS_BARO == PX4_SPI_BUS_RAMTRON
This commit is contained in:
committed by
Lorenz Meier
parent
6aadc75d18
commit
bf570dee2f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user