From 83a29d333b433f2bed138bfb6108c3ce5dc99417 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 30 Jul 2016 15:59:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9731 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ex/ST/lsm303dlhc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/os/ex/ST/lsm303dlhc.c b/os/ex/ST/lsm303dlhc.c index 310eb44e9..a86885b27 100644 --- a/os/ex/ST/lsm303dlhc.c +++ b/os/ex/ST/lsm303dlhc.c @@ -87,7 +87,7 @@ msg_t lsm303dlhcI2CReadRegister(I2CDriver *i2cp, lsm303dlhc_sad_t sad, * * @param[in] i2cp pointer to the I2C interface * @param[in] sad slave address without R bit - * @param[in] txbuf buffer comtaining sub-address value in first position + * @param[in] txbuf buffer containing sub-address value in first position * and values to write * @param[in] n size of txbuf less one (not considering the first * element) @@ -616,7 +616,7 @@ void lsm303dlhcObjectInit(LSM303DLHCDriver *devp) { */ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { uint32_t i; - uint8_t buff[5] = {0, 0, 0, 0, 0}; + uint8_t buff[6] = {0, 0, 0, 0, 0, 0}; osalDbgCheck((devp != NULL) && (config != NULL)); osalDbgAssert((devp->state == LSM303DLHC_STOP) || (devp->state == LSM303DLHC_READY), @@ -816,7 +816,6 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { */ void lsm303dlhcStop(LSM303DLHCDriver *devp) { uint8_t buff[2]; - osalDbgCheck(devp != NULL); osalDbgAssert((devp->state == LSM303DLHC_STOP) || (devp->state == LSM303DLHC_READY), -- cgit v1.2.3