test

Fork of MPL3115A2 by Michael Lange

Revision:
4:249d5270511d
Parent:
3:7c7c1ea6fc33
--- a/Temperature.h	Wed Apr 02 12:59:44 2014 +0000
+++ b/Temperature.h	Tue Sep 05 14:54:16 2017 +0000
@@ -28,7 +28,7 @@
     enum unitsType { CELSIUS, FAHRENHEIT, KELVIN };
 
     Temperature();
-    Temperature(float a, unitsType units = FAHRENHEIT);
+    Temperature(float a, unitsType units = CELSIUS);
     Temperature(const char* compressed);
     Temperature(const char msb, const char lsb);
 
@@ -37,15 +37,15 @@
     //! Same as calling temperature with FAHRENHEIT as the parameter.
     operator float(void) { return _temperature; }
 
-    float temperature(unitsType units = FAHRENHEIT);
+    float temperature(unitsType units = CELSIUS);
     //! Call to decompress the sensor data after an I2C read.
     void setTemperature();
     void setTemperature(const char* compressed);
     void setTemperature(const char msb, const char lsb);
-    void setTemperature(float a, unitsType units = FAHRENHEIT);
+    void setTemperature(float a, unitsType units = CELSIUS);
 
     //! Returns the temperature as a string in the units specified, defaulting to FAHRENHEIT if none specified.
-    const char* print(unitsType units = FAHRENHEIT);
+    const char* print(unitsType units = CELSIUS);
     
 private:
     float _temperature;