diff options
author | Andrew Tridgell <andrew@tridgell.net> | 2015-02-11 17:01:34 +1100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-11 12:48:59 +0100 |
commit | 0801dbda38e31615a2345ba76acfef592150e5bb (patch) | |
tree | cb75a92396774e30c7673755b89966b88a4679f5 /src/drivers | |
parent | e0ac0c4a4b83fe0ba55557fe77913e9891bb0a57 (diff) | |
download | px4-firmware-0801dbda38e31615a2345ba76acfef592150e5bb.tar.gz px4-firmware-0801dbda38e31615a2345ba76acfef592150e5bb.tar.bz2 px4-firmware-0801dbda38e31615a2345ba76acfef592150e5bb.zip |
l3gd20: checking status only makes sense if we have DRDY
it makes no sense on the external SPI bus
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index 9fee1a2b0..ad01338b9 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -972,7 +972,7 @@ L3GD20::measure() transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(raw_report)); #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 when we captured. That means a transfer error of some sort |