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:49:03 2014 +0000
Parent:
3:7c7c1ea6fc33
Child:
5:1c3bf7d001a3
Commit message:
Updated Library to include metric measurements

Changed in this revision

Altitude.cpp Show annotated file Show diff for this revision Revisions of this file
Temperature.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Altitude.cpp	Wed Apr 02 12:59:44 2014 +0000
+++ b/Altitude.cpp	Fri Jun 20 06:49:03 2014 +0000
@@ -52,6 +52,8 @@
     {
         case FEET:
             return MetersToFeet(_altitude);
+        case METERS:
+            return _altitude;
     }
     
     return _altitude;
--- a/Temperature.cpp	Wed Apr 02 12:59:44 2014 +0000
+++ b/Temperature.cpp	Fri Jun 20 06:49:03 2014 +0000
@@ -54,6 +54,9 @@
         
         case KELVIN:
             return _temperature + 273.15;
+        
+        case CELSIUS:
+            return _temperature;
     }
     
     return _temperature;