From 01d47d6373b4d9abf848a993a050fd4cb8b99a5d Mon Sep 17 00:00:00 2001 From: James Cotton Date: Mon, 11 Jun 2012 12:21:46 -0500 Subject: [PATCH] Accidental semicolon led to MPU6000 always failing self test. Another bug masked that behavior. I suck. --- flight/PiOS/Common/pios_mpu6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/PiOS/Common/pios_mpu6000.c b/flight/PiOS/Common/pios_mpu6000.c index 7df306d10..904e9402c 100644 --- a/flight/PiOS/Common/pios_mpu6000.c +++ b/flight/PiOS/Common/pios_mpu6000.c @@ -361,7 +361,7 @@ int32_t PIOS_MPU6000_Test(void) if(mpu6000_id < 0) return -1; - if(mpu6000_id != 0x68); + if(mpu6000_id != 0x68) return -2; return 0;