ST Expansion SW Team / X_NUCLEO_IKS01A2_SPI3W

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON_SPI3W

Dependents:   sensor-node-ble

Fork of X_NUCLEO_IKS01A2 by Licio Mapelli

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);     
 };