diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2019-02-03 11:20:45 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2019-02-03 11:20:45 +0000 |
commit | 3c7905ac015c89f6d1dd63c9a97bddd164240c5f (patch) | |
tree | ec35e2246d769fcac396415465c1059393c53bce /os/ex | |
parent | 3fb018d9876aeeea204687e9951cead229a255bc (diff) | |
download | ChibiOS-3c7905ac015c89f6d1dd63c9a97bddd164240c5f.tar.gz ChibiOS-3c7905ac015c89f6d1dd63c9a97bddd164240c5f.tar.bz2 ChibiOS-3c7905ac015c89f6d1dd63c9a97bddd164240c5f.zip |
Fixed Bug #1005
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12633 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/ex')
-rw-r--r-- | os/ex/ST/lps22hb.c | 8 | ||||
-rw-r--r-- | os/ex/ST/lps22hb.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/os/ex/ST/lps22hb.c b/os/ex/ST/lps22hb.c index a341f5fcd..ce1698e76 100644 --- a/os/ex/ST/lps22hb.c +++ b/os/ex/ST/lps22hb.c @@ -585,6 +585,10 @@ void lps22hbStart(LPS22HBDriver *devp, const LPS22HBConfig *config) { lps22hbI2CWriteRegister(devp->config->i2cp, devp->config->slaveaddress,
cr, 1);
+#if LPS22HB_SHARED_I2C
+ i2cReleaseBus((devp)->config->i2cp);
+#endif /* LPS22HB_SHARED_I2C */
+
/* Control register 1 configuration block.*/
{
cr[0] = LPS22HB_AD_CTRL_REG1;
@@ -597,9 +601,9 @@ void lps22hbStart(LPS22HBDriver *devp, const LPS22HBConfig *config) { #if LPS22HB_SHARED_I2C
i2cAcquireBus((devp)->config->i2cp);
-#endif /* LPS22HB_SHARED_I2C */
i2cStart((devp)->config->i2cp,
- (devp)->config->i2ccfg);
+ (devp)->config->i2ccfg);
+#endif /* LPS22HB_SHARED_I2C */
lps22hbI2CWriteRegister(devp->config->i2cp, devp->config->slaveaddress, cr, 1);
diff --git a/os/ex/ST/lps22hb.h b/os/ex/ST/lps22hb.h index dee503d09..484e40120 100644 --- a/os/ex/ST/lps22hb.h +++ b/os/ex/ST/lps22hb.h @@ -43,7 +43,7 @@ /**
* @brief LPS22HB driver version string.
*/
-#define EX_LPS22HB_VERSION "1.0.1"
+#define EX_LPS22HB_VERSION "1.0.2"
/**
* @brief LPS22HB driver version major number.
@@ -58,7 +58,7 @@ /**
* @brief LPS22HB driver version patch number.
*/
-#define EX_LPS22HB_PATCH 1
+#define EX_LPS22HB_PATCH 2
/** @} */
/**
|