MPU6050 library
Fork of eMPL_MPU6050 by
Diff: inv_mpu.c
- Revision:
- 3:b931c48531b4
- Parent:
- 2:6c7eb2f19ada
diff -r 6c7eb2f19ada -r b931c48531b4 inv_mpu.c --- 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. */