MPU6050 library

Fork of eMPL_MPU6050 by Seeed

Revision:
3:b931c48531b4
Parent:
2:6c7eb2f19ada
--- a/inv_mpu.c	Fri Nov 27 21:12:04 2015 +0000
+++ b/inv_mpu.c	Sat Nov 28 16:33:26 2015 +0000
@@ -1859,7 +1859,7 @@
     fifo_count = (tmp[0] << 8) | tmp[1];
     if (fifo_count < length) {
         more[0] = 0;
-        return -13000+length;
+        return -13;
     }
     if (fifo_count > (st.hw->max_fifo >> 1)) {
         /* FIFO is 50% full, better check overflow bit. */