From 502f971ea45ea334aff59f035a7aeb33d30eb7db Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sun, 11 Mar 2018 16:34:28 +0000 Subject: Cosmetic changes git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11704 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/ex/ST/lsm303dlhc.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'os') 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); -- cgit v1.2.3