l3gd20: checking status only makes sense if we have DRDY

it makes no sense on the external SPI bus
This commit is contained in:
Andrew Tridgell 2015-02-11 17:01:34 +11:00 committed by Lorenz Meier
parent e0ac0c4a4b
commit 0801dbda38
1 changed files with 1 additions and 1 deletions

View File

@ -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