Fixed Bug #1005
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12633 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
fa11673d0d
commit
c248526f60
|
@ -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);
|
||||
#endif /* LPS22HB_SHARED_I2C */
|
||||
|
||||
lps22hbI2CWriteRegister(devp->config->i2cp, devp->config->slaveaddress, cr, 1);
|
||||
|
||||
|
|
|
@ -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
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
|
|
@ -78,3 +78,5 @@
|
|||
- NIL: Integrated NIL 4.0.
|
||||
- FIX: Fixed problem in STM32 mcuconf.h template files (bug #1007)
|
||||
(backported to 19.1.1)(backported to 18.2.3).
|
||||
- EX: Missing I2C release bus in LPS22HB initialization (bug #1005)
|
||||
(backported to 19.1.1).
|
Loading…
Reference in New Issue