mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:31:36 +08:00
l3gd20: checking status only makes sense if we have DRDY
it makes no sense on the external SPI bus
This commit is contained in:
committed by
Lorenz Meier
parent
e0ac0c4a4b
commit
0801dbda38
@@ -972,7 +972,7 @@ L3GD20::measure()
|
|||||||
transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(raw_report));
|
transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(raw_report));
|
||||||
|
|
||||||
#if L3GD20_USE_DRDY
|
#if L3GD20_USE_DRDY
|
||||||
if ((raw_report.status & 0xF) != 0xF) {
|
if (_bus == PX4_SPI_BUS_SENSORS && (raw_report.status & 0xF) != 0xF) {
|
||||||
/*
|
/*
|
||||||
we waited for DRDY, but did not see DRDY on all axes
|
we waited for DRDY, but did not see DRDY on all axes
|
||||||
when we captured. That means a transfer error of some sort
|
when we captured. That means a transfer error of some sort
|
||||||
|
|||||||
Reference in New Issue
Block a user