Skip to content

Commit 5c0c6cb

Browse files
committed
AP_Baro: use SPI full duplex API for DMA optimisation
1 parent 32977be commit 5c0c6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_Baro/AP_Baro_BMP388.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ bool AP_Baro_BMP388::read_registers(uint8_t reg, uint8_t *data, uint8_t len)
245245
uint8_t b[len+2];
246246
b[0] = reg | 0x80;
247247
memset(&b[1], 0, len+1);
248-
if (!dev->transfer(b, len+2, b, len+2)) {
248+
if (!dev->transfer_fullduplex(b, len+2)) {
249249
return false;
250250
}
251251
memcpy(data, &b[2], len);

0 commit comments

Comments
 (0)