Javascript wrappers for LPS22HB Sensor library

Dependencies:   LPS22HB

Dependents:   ST_SENSOR_JS

Revision:
4:c2cf5deba40f
Parent:
3:3e19d8808491
Child:
5:e92dbbec30d7
--- a/LPS22HB_JS.cpp	Mon Oct 23 16:40:42 2017 +0200
+++ b/LPS22HB_JS.cpp	Wed Oct 25 13:58:34 2017 +0200
@@ -84,10 +84,10 @@
 
 /** Constructor
  * @brief     Initializing the component.
- * @param i2c object of an helper class which handles the I2C peripheral
+ * @param devI2c object of an helper class which handles the DevI2C peripheral
  */
-LPS22HB_JS::LPS22HB_JS(I2C &i2c){
-	press_temp = new LPS22HBSensor(reinterpret_cast<DevI2C*>(&i2c));
+LPS22HB_JS::LPS22HB_JS(DevI2C &devI2c){
+	press_temp = new LPS22HBSensor(&devI2c);
 	press_temp->init(NULL);
 	press_temp->enable();
 }