mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 06:23:34 +08:00
MS5611: Ensure to set the lockmode at the right location
This commit is contained in:
@@ -143,11 +143,6 @@ 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();
|
||||
@@ -157,6 +152,11 @@ MS5611_SPI::init()
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* sharing a bus with NuttX drivers */
|
||||
#if defined (CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||
//set_lockmode(SPI::LOCK_THREADS);
|
||||
#endif
|
||||
|
||||
/* send reset command */
|
||||
ret = _reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user