mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
MS5611: Use the right locking mechanism on Pixracer
This commit is contained in:
@@ -143,6 +143,11 @@ MS5611_SPI::~MS5611_SPI()
|
||||
int
|
||||
MS5611_SPI::init()
|
||||
{
|
||||
// Sharing a bus with NuttX drivers
|
||||
#if defined (CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||
set_lockmode(SPI::LOCK_THREADS);
|
||||
#endif
|
||||
|
||||
int ret;
|
||||
|
||||
ret = SPI::init();
|
||||
|
||||
Reference in New Issue
Block a user