Line 48 commented out

Dependents:   UPAS_MicroBLE ENV_NODE_REQUEST_POC ENV_F303K8

Fork of SI1145 by Volckens Group Sensors

Revision:
3:efef49daeb13
Parent:
1:8587b5583343
Child:
4:27844262d40f
--- a/SI1145.cpp	Sat May 30 00:02:00 2015 +0000
+++ b/SI1145.cpp	Fri Jun 12 22:08:12 2015 +0000
@@ -186,10 +186,10 @@
     return vali;
 }
 
-uint16_t SI1145::getVIS()
+float SI1145::getVIS()
 {
     // Variables
-    //float valf;                          // vis (IR+UV) value
+    float valf;                          // vis (IR+UV) value
     char reg[1];                         // register
     char data[2] = {0,0};                // data 2 x 8 bits
     uint16_t vali;                       // vis value
@@ -200,9 +200,9 @@
     i2c.read(address, data, 2);
     // Merge bytes
     vali = data[0] | (data[1] << 8);    // int
-    //valf = (float)vali;                 // convert to float
+    valf = (float)vali/100;                 // convert to float
     // Return value
-    return vali;
+    return valf;
 }
 
 uint16_t SI1145::getIR()