Local fork
Dependents: IMURoomba IMURoomba4_ThrowSumMo IMURoomba4
Fork of LSM9DS1_Library by
Diff: LSM9DS1.cpp
- Revision:
- 4:57cf64f3e478
- Parent:
- 1:87d535bf8c53
--- 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)