Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON_SPI3W
Fork of X_NUCLEO_IKS01A2 by
Diff: Components/LPS22HBSensor/LPS22HBSensor.cpp
- Revision:
- 19:bfb25ac47fb5
- Parent:
- 12:fe9481a79119
--- a/Components/LPS22HBSensor/LPS22HBSensor.cpp Tue May 30 15:34:43 2017 +0000
+++ b/Components/LPS22HBSensor/LPS22HBSensor.cpp Mon Jun 05 10:03:30 2017 +0000
@@ -94,13 +94,12 @@
* @param i2c object of an helper class which handles the I2C peripheral
* @param address the address of the component's instance
*/
-LPS22HBSensor::LPS22HBSensor(DevI2C *i2c, uint8_t address, PinName cs_pin, PinName int_pin) :
- _dev_i2c(i2c), _address(address), _cs_pin(cs_pin), _int_pin(int_pin)
+LPS22HBSensor::LPS22HBSensor(DevI2C *i2c, uint8_t address, PinName int_pin) :
+ _dev_i2c(i2c), _address(address), _cs_pin(NC), _int_pin(int_pin)
{
assert (i2c);
_dev_spi = NULL;
_dev_spi3w = NULL;
- if (cs_pin != NC) _cs_pin = 1;
LPS22HB_Set_I2C ((void *)this, LPS22HB_ENABLE);
};
