diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-11 16:34:28 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-03-11 16:34:28 +0000 |
commit | 502f971ea45ea334aff59f035a7aeb33d30eb7db (patch) | |
tree | fe50bcedde67557ca4754183a33279f1f5e8d6f5 /os | |
parent | 3382c2d184798b7c6081e11070c6446d826321b1 (diff) | |
download | ChibiOS-502f971ea45ea334aff59f035a7aeb33d30eb7db.tar.gz ChibiOS-502f971ea45ea334aff59f035a7aeb33d30eb7db.tar.bz2 ChibiOS-502f971ea45ea334aff59f035a7aeb33d30eb7db.zip |
Cosmetic changes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11704 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r-- | os/ex/ST/lsm303dlhc.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/os/ex/ST/lsm303dlhc.c b/os/ex/ST/lsm303dlhc.c index 993c07aa0..53c49e680 100644 --- a/os/ex/ST/lsm303dlhc.c +++ b/os/ex/ST/lsm303dlhc.c @@ -405,8 +405,7 @@ static msg_t acc_set_full_scale(LSM303DLHCDriver *devp, #if LSM303DLHC_SHARED_I2C
i2cAcquireBus(devp->config->i2cp);
- i2cStart(devp->config->i2cp,
- devp->config->i2ccfg);
+ i2cStart(devp->config->i2cp, devp->config->i2ccfg);
#endif /* LSM303DLHC_SHARED_I2C */
msg = lsm303dlhcI2CWriteRegister(devp->config->i2cp,
@@ -710,7 +709,7 @@ static msg_t comp_reset_sensivity(void *ip) { }
}
else {
- osalDbgAssert(FALSE, "reset_sensivity(), compass full scale issue");
+ osalDbgAssert(FALSE, "comp_reset_sensivity(), compass full scale issue");
msg = MSG_RESET;
}
return msg;
@@ -776,15 +775,12 @@ static msg_t comp_set_full_scale(LSM303DLHCDriver *devp, #if LSM303DLHC_SHARED_I2C
i2cAcquireBus(devp->config->i2cp);
- i2cStart(devp->config->i2cp,
- devp->config->i2ccfg);
+ i2cStart(devp->config->i2cp, devp->config->i2ccfg);
#endif /* LSM303DLHC_SHARED_I2C */
/* Updating register.*/
- msg = lsm303dlhcI2CReadRegister(devp->config->i2cp,
- LSM303DLHC_SAD_COMP,
- LSM303DLHC_AD_COMP_CRB_REG,
- &buff[1], 1);
+ msg = lsm303dlhcI2CReadRegister(devp->config->i2cp, LSM303DLHC_SAD_COMP,
+ LSM303DLHC_AD_COMP_CRB_REG, &buff[1], 1);
#if LSM303DLHC_SHARED_I2C
i2cReleaseBus(devp->config->i2cp);
@@ -798,12 +794,11 @@ static msg_t comp_set_full_scale(LSM303DLHCDriver *devp, #if LSM303DLHC_SHARED_I2C
i2cAcquireBus(devp->config->i2cp);
- i2cStart(devp->config->i2cp,
- devp->config->i2ccfg);
+ i2cStart(devp->config->i2cp, devp->config->i2ccfg);
#endif /* LSM303DLHC_SHARED_I2C */
- msg = lsm303dlhcI2CWriteRegister(devp->config->i2cp,
- LSM303DLHC_SAD_COMP, buff, 1);
+ msg = lsm303dlhcI2CWriteRegister(devp->config->i2cp, LSM303DLHC_SAD_COMP,
+ buff, 1);
#if LSM303DLHC_SHARED_I2C
i2cReleaseBus(devp->config->i2cp);
|