mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 19:41:36 +08:00
PX4 SPI default to thread locking mode
This commit is contained in:
@@ -124,14 +124,7 @@ MS5611_SPI::MS5611_SPI(uint8_t bus, uint32_t device, ms5611::prom_u &prom_buf) :
|
||||
int
|
||||
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();
|
||||
int ret = SPI::init();
|
||||
|
||||
if (ret != OK) {
|
||||
PX4_DEBUG("SPI init failed");
|
||||
|
||||
Reference in New Issue
Block a user