diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-14 15:42:45 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-14 15:42:45 +0000 |
commit | f685cd7f543f869aa8f7733730b9d230c2d6c580 (patch) | |
tree | 03b8f632e05a51b174079b1b4310b147457bf77b /os/ex | |
parent | 286dbbc8380dcde3763fad99e40477d5c2014783 (diff) | |
download | ChibiOS-f685cd7f543f869aa8f7733730b9d230c2d6c580.tar.gz ChibiOS-f685cd7f543f869aa8f7733730b9d230c2d6c580.tar.bz2 ChibiOS-f685cd7f543f869aa8f7733730b9d230c2d6c580.zip |
Minor fixes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11750 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/ex')
-rw-r--r-- | os/ex/ST/lsm303dlhc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/os/ex/ST/lsm303dlhc.c b/os/ex/ST/lsm303dlhc.c index a50a78aa9..0e05252d4 100644 --- a/os/ex/ST/lsm303dlhc.c +++ b/os/ex/ST/lsm303dlhc.c @@ -325,7 +325,7 @@ static msg_t acc_reset_sensivity(void *ip) { for(i = 0; i < LSM303DLHC_ACC_NUMBER_OF_AXES; i++)
devp->accsensitivity[i] = LSM303DLHC_ACC_SENS_16G;
else {
- osalDbgAssert(FALSE, "reset_sensivity(), accelerometer full scale issue");
+ osalDbgAssert(FALSE, "acc_reset_sensivity(), accelerometer full scale issue");
msg = MSG_RESET;
}
return msg;
@@ -1162,8 +1162,6 @@ void lsm303dlhcStop(LSM303DLHCDriver *devp) { /* Disabling compass. */
cr[0] = LSM303DLHC_AD_COMP_MR_REG;
cr[1] = LSM303DLHC_COMP_MD_SLEEP;
- lsm303dlhcI2CWriteRegister(devp->config->i2cp, LSM303DLHC_SAD_ACC,
- cr, 1);
lsm303dlhcI2CWriteRegister(devp->config->i2cp, LSM303DLHC_SAD_COMP,
cr, 1);
|