diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-12-11 09:02:31 +1100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-13 11:18:59 +0100 |
commit | 17502cbde43cf96c55af1811723ce84ca2a1fc27 (patch) | |
tree | a5560a250b3a4308adf561c29761c84f3bdca62f /src/drivers/l3gd20/l3gd20.cpp | |
parent | 1a1570d9020a1d6a76a3c4d33ad84f9879c0fe88 (diff) | |
download | px4-firmware-17502cbde43cf96c55af1811723ce84ca2a1fc27.tar.gz px4-firmware-17502cbde43cf96c55af1811723ce84ca2a1fc27.tar.bz2 px4-firmware-17502cbde43cf96c55af1811723ce84ca2a1fc27.zip |
l3gd20: fixed a warning
Diffstat (limited to 'src/drivers/l3gd20/l3gd20.cpp')
-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 1077eb43b..1d437df2b 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -816,7 +816,7 @@ L3GD20::measure() transfer((uint8_t *)&raw_report, (uint8_t *)&raw_report, sizeof(raw_report)); #ifdef GPIO_EXTI_GYRO_DRDY - if (raw_report.status & 0xF != 0xF) { + if ((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 |