Forked Changes to Pressure sensor

Dependents:   WiFiDipCortexSensor

Fork of MPL3115A2 by Michael Lange

Files at this revision

API Documentation at this revision

Comitter:
markirwin
Date:
Fri Jun 20 06:52:34 2014 +0000
Parent:
4:23fb1c464583
Commit message:
Changes to default units are now metric

Changed in this revision

Altitude.h Show annotated file Show diff for this revision Revisions of this file
Temperature.h Show annotated file Show diff for this revision Revisions of this file
--- a/Altitude.h	Fri Jun 20 06:49:03 2014 +0000
+++ b/Altitude.h	Fri Jun 20 06:52:34 2014 +0000
@@ -50,7 +50,7 @@
     void setAltitude(float a, unitsType units = FEET);
 
     //! Returns the altitude as a string in the units specified, defaulting to FEET if none specified.
-    const char* print(unitsType units = FEET);
+    const char* print(unitsType units = METERS);
     
     //! Converts meters to feet.
     static float MetersToFeet(float meters) { return meters * 3.28084; }
--- a/Temperature.h	Fri Jun 20 06:49:03 2014 +0000
+++ b/Temperature.h	Fri Jun 20 06:52:34 2014 +0000
@@ -45,7 +45,7 @@
     void setTemperature(float a, unitsType units = FAHRENHEIT);
 
     //! 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;