aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-07-30 15:59:57 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-07-30 15:59:57 +0000
commit83a29d333b433f2bed138bfb6108c3ce5dc99417 (patch)
tree26921c11ad8a2f9951ce77ecb4ca833a3acfde07 /os/ex
parent31b97d7e07bab71bbe482dc5e2cff15c7eaf9f6f (diff)
downloadChibiOS-83a29d333b433f2bed138bfb6108c3ce5dc99417.tar.gz
ChibiOS-83a29d333b433f2bed138bfb6108c3ce5dc99417.tar.bz2
ChibiOS-83a29d333b433f2bed138bfb6108c3ce5dc99417.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9731 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex')
-rw-r--r--os/ex/ST/lsm303dlhc.c5
1 files 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),