mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 16:53:35 +08:00
voxl2: Add support for the new M0197 board variant. Uses bmi270 IMU and dps310 barometer and GPS on apps proc.
This commit is contained in:
committed by
Ramon Roche
parent
55d35ddf37
commit
b0b99de767
@@ -157,7 +157,11 @@ SPI::transfer(uint8_t *send, uint8_t *recv, unsigned len)
|
||||
|
||||
if (_spi_transfer != NULL) {
|
||||
pthread_mutex_lock(&_mutex);
|
||||
ret = _spi_transfer(_fd, send, recv, len);
|
||||
|
||||
if (recv) { ret = _spi_transfer(_fd, send, recv, len); }
|
||||
|
||||
else { ret = _spi_transfer(_fd, send, send, len); }
|
||||
|
||||
pthread_mutex_unlock(&_mutex);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user