MPU6050 library
Fork of eMPL_MPU6050 by
Revision 3:b931c48531b4, committed 2015-11-28
- Comitter:
- richterfilip
- Date:
- Sat Nov 28 16:33:26 2015 +0000
- Parent:
- 2:6c7eb2f19ada
- Commit message:
- Some debug changes, return codes are separated and propagated
Changed in this revision
inv_mpu.c | Show annotated file Show diff for this revision Revisions of this file |
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. */