Javascript wrappers for HTS221 Sensor library

Dependencies:   HTS221

Dependents:   ST_SENSOR_JS

Revision:
4:6043b9511072
Parent:
3:df24cbc8aaf0
Child:
5:bbe15d3cac27
--- a/HTS221_JS.cpp	Mon Oct 23 16:38:37 2017 +0200
+++ b/HTS221_JS.cpp	Wed Oct 25 13:58:13 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
  */
-HTS221_JS::HTS221_JS(I2C &i2c){
-	hum_temp = new HTS221Sensor(reinterpret_cast<DevI2C*>(&i2c));
+HTS221_JS::HTS221_JS(DevI2C &devI2c){
+	hum_temp = new HTS221Sensor(&devI2c);
 	hum_temp->init(NULL);
 	hum_temp->enable();
 }