Direct copy of the library, but apparently I made a change?

Fork of SHTx by Roy van Dam

Revision:
1:8465801be23f
Parent:
0:d55659b0c4a0
diff -r d55659b0c4a0 -r 8465801be23f sht15.hpp
--- a/sht15.hpp	Thu Nov 18 10:23:43 2010 +0000
+++ b/sht15.hpp	Fri Nov 19 16:24:46 2010 +0000
@@ -61,7 +61,7 @@
             coefficients(void) {
                 c1[0] = -2.046f;        c2[1] = -2.046f;
                 c2[0] =  0.036f;        c2[1] =  0.587f;
-                c3[0] = -0.0000015955f; c2[1] = -0.00040845f;
+                c3[0] = -0.0000015955f; c3[1] = -0.00040845f;
 
                 dc[0] =  0.01f;         dc[1] =  0.04f;
                 df[0] =  0.018f;        df[1] =  0.072f;
@@ -82,7 +82,7 @@
 
         enum flag_list {
             flag_resolution = 0x01,
-            flag_reset      = 0x02,
+            flag_otp_reload = 0x02,
             flag_heater     = 0x04,
             flag_battery    = 0x40
         };
@@ -149,6 +149,18 @@
          */
         bool setResolution(bool value);
 
+		/**
+         * Function: setOTPReload
+         *  With this operation the calibration data is 
+		 *  uploaded to the register before each measurement. This 
+         *  may be deactivated for reducing measurement time by 
+         *  about 10ms
+         *
+         * Values:
+         *  value - true->enabled, false->disabled
+         */
+		bool setOTPReload(bool value);
+
         /**
          * Function: setScale
          *  Sets output scale to fahrenheit or celcius.
@@ -170,12 +182,21 @@
     
         /**
          * Function: reset
-         *  Performs full chip reset.
+         *  Resets the interface, clears the 
+		 *  status register to default values.
+		 *  And waits for a minimum of 11ms.
          *
          * Values:
          *  return - operation result
          */
         bool reset(void);
+
+		/**
+         * Function: connectionReset
+         *  If communication with the device is lost
+		 *  the command will reset the serial interface
+         */
+		void connectionReset(void);
     
     private: