enable -Wlogical-op and fix bmi160

This commit is contained in:
Daniel Agar
2017-06-03 11:52:10 -04:00
committed by Nuno Marques
parent a031552756
commit fb5cb87e9b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1131,7 +1131,7 @@ BMI160::measure()
check_registers();
if ((!(status && (0x80))) && (!(status && (0x04)))) {
if ((!(status & (0x80))) && (!(status & (0x04)))) {
perf_end(_sample_perf);
perf_count(_duplicates);
_got_duplicate = true;