Local fork
Dependents: IMURoomba IMURoomba4_ThrowSumMo IMURoomba4
Fork of LSM9DS1_Library by
Revision 4:57cf64f3e478, committed 2017-05-02
- Comitter:
- CRaslawski
- Date:
- Tue May 02 19:38:47 2017 +0000
- Parent:
- 3:e30fde2db274
- Commit message:
- fixed some compiler warnings in LSM
Changed in this revision
| LSM9DS1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LSM9DS1.cpp Tue May 02 19:20:06 2017 +0000
+++ b/LSM9DS1.cpp Tue May 02 19:38:47 2017 +0000
@@ -334,7 +334,7 @@
// is good practice.
void LSM9DS1::calibrate(bool autoCalc)
{
- uint8_t data[6] = {0, 0, 0, 0, 0, 0};
+ //uint8_t data[6] = {0, 0, 0, 0, 0, 0};
uint8_t samples = 0;
int ii;
int32_t aBiasRawTemp[3] = {0, 0, 0};
@@ -1009,6 +1009,7 @@
return I2CreadByte(_xgAddress, subAddress);
else if (settings.device.commInterface == IMU_MODE_SPI)
return SPIreadByte(_xgAddress, subAddress);
+ return 0;
}
void LSM9DS1::xgReadBytes(uint8_t subAddress, uint8_t * dest, uint8_t count)
@@ -1030,6 +1031,7 @@
return I2CreadByte(_mAddress, subAddress);
else if (settings.device.commInterface == IMU_MODE_SPI)
return SPIreadByte(_mAddress, subAddress);
+ return 0;
}
void LSM9DS1::mReadBytes(uint8_t subAddress, uint8_t * dest, uint8_t count)

